summaryrefslogtreecommitdiffstats
path: root/drivers/iio/potentiometer
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-03-04 22:55:25 -0800
committerJonathan Cameron <jic23@kernel.org>2016-03-05 14:00:57 +0000
commit844a65636793d284526ff7d623ef477ed4473ab4 (patch)
tree9b1f6c4df5b03a416a3376dc5cf7611e6476429f /drivers/iio/potentiometer
parent9bad1d0a5a0313b69597269474fd15849414cfae (diff)
downloadlinux-844a65636793d284526ff7d623ef477ed4473ab4.tar.gz
linux-844a65636793d284526ff7d623ef477ed4473ab4.tar.bz2
linux-844a65636793d284526ff7d623ef477ed4473ab4.zip
iio: potentiometer: tpl0102: change i2c functionality return code
Change i2c_check_functionality condition check return from ENOTSUPP to EOPNOTSUPP which is now the standard return code. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/potentiometer/tpl0102.c b/drivers/iio/potentiometer/tpl0102.c
index 313124b6fd59..5c304d42d713 100644
--- a/drivers/iio/potentiometer/tpl0102.c
+++ b/drivers/iio/potentiometer/tpl0102.c
@@ -118,7 +118,7 @@ static int tpl0102_probe(struct i2c_client *client,
if (!i2c_check_functionality(client->adapter,
I2C_FUNC_SMBUS_WORD_DATA))
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
if (!indio_dev)