浏览代码

iio: potentiometer: tpl0102: remove unneeded i2c check functionality test

Actually I2C_FUNC_SMBUS_WORD_DATA isn't need for this device, and regmap
handles all single byte reads transparently.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Matt Ranostay 9 年之前
父节点
当前提交
2763ac94f3
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      drivers/iio/potentiometer/tpl0102.c

+ 0 - 4
drivers/iio/potentiometer/tpl0102.c

@@ -116,10 +116,6 @@ static int tpl0102_probe(struct i2c_client *client,
 	struct tpl0102_data *data;
 	struct iio_dev *indio_dev;
 
-	if (!i2c_check_functionality(client->adapter,
-				     I2C_FUNC_SMBUS_WORD_DATA))
-		return -EOPNOTSUPP;
-
 	indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
 	if (!indio_dev)
 		return -ENOMEM;