From: Matt Ranostay Date: Sat, 5 Mar 2016 06:55:25 +0000 (-0800) Subject: iio: potentiometer: tpl0102: change i2c functionality return code X-Git-Tag: v4.7-rc1~90^2~407^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=844a65636793d284526ff7d623ef477ed4473ab4;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/potentiometer/tpl0102.c b/drivers/iio/potentiometer/tpl0102.c index 313124b..5c304d4 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)