summaryrefslogtreecommitdiff
path: root/drivers/iio/potentiometer/tpl0102.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/potentiometer/tpl0102.c')
-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)