diff options
author | Matt Ranostay <mranostay@gmail.com> | 2016-05-12 00:47:48 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-14 12:56:36 -0400 |
commit | 2763ac94f3e4d3711863729f4c11500d245f68cc (patch) | |
tree | 04f93f2303e7bd3aed894a43bc3ad0ee0b6d181a /drivers/iio | |
parent | ed859fc17d67f4c0ade6f5a58365e621f88de3cf (diff) |
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')
-rw-r--r-- | drivers/iio/potentiometer/tpl0102.c | 4 |
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, | |||
116 | struct tpl0102_data *data; | 116 | struct tpl0102_data *data; |
117 | struct iio_dev *indio_dev; | 117 | struct iio_dev *indio_dev; |
118 | 118 | ||
119 | if (!i2c_check_functionality(client->adapter, | ||
120 | I2C_FUNC_SMBUS_WORD_DATA)) | ||
121 | return -EOPNOTSUPP; | ||
122 | |||
123 | indio_dev = devm_iio_device_alloc(dev, sizeof(*data)); | 119 | indio_dev = devm_iio_device_alloc(dev, sizeof(*data)); |
124 | if (!indio_dev) | 120 | if (!indio_dev) |
125 | return -ENOMEM; | 121 | return -ENOMEM; |