summaryrefslogtreecommitdiff
path: root/drivers/iio/temperature/tsys01.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/temperature/tsys01.c')
-rw-r--r--drivers/iio/temperature/tsys01.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/temperature/tsys01.c b/drivers/iio/temperature/tsys01.c
index 05c12060ce8d..3e60c6189d98 100644
--- a/drivers/iio/temperature/tsys01.c
+++ b/drivers/iio/temperature/tsys01.c
@@ -190,7 +190,7 @@ static int tsys01_i2c_probe(struct i2c_client *client,
I2C_FUNC_SMBUS_READ_I2C_BLOCK)) {
dev_err(&client->dev,
"Adapter does not support some i2c transaction\n");
- return -ENODEV;
+ return -EOPNOTSUPP;
}
indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data));