summaryrefslogtreecommitdiffstats
path: root/drivers/iio/potentiometer
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-05-11 21:47:48 -0700
committerJonathan Cameron <jic23@kernel.org>2016-05-14 17:56:36 +0100
commit2763ac94f3e4d3711863729f4c11500d245f68cc (patch)
tree04f93f2303e7bd3aed894a43bc3ad0ee0b6d181a /drivers/iio/potentiometer
parented859fc17d67f4c0ade6f5a58365e621f88de3cf (diff)
downloadlinux-2763ac94f3e4d3711863729f4c11500d245f68cc.tar.gz
linux-2763ac94f3e4d3711863729f4c11500d245f68cc.tar.xz
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>
Diffstat (limited to 'drivers/iio/potentiometer')
-rw-r--r--drivers/iio/potentiometer/tpl0102.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iio/potentiometer/tpl0102.c b/drivers/iio/potentiometer/tpl0102.c
index 5c304d42d713..7b6b54531ea2 100644
--- a/drivers/iio/potentiometer/tpl0102.c
+++ b/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;