Skip to contentSkip to conversation

iio: potentiometer: tpl0102: change i2c functionality return code

PATCH Applied Matt Ranostay 2 participants 3 messages Mar 5, 2016 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/iio/potentiometer/tpl0102.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/potentiometer/tpl0102.c +1 -1
index 313124b..5c304d4 100644
@@ -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)
Signature · 1 line
2.7.0
#1 lore raw

Bit embarrassing that I missed my new driver in the original cleanup :)

Quoted 24 lines · Matt Ranostay

Change i2c_check_functionality condition check return from ENOTSUPP to EOPNOTSUPP which is now the standard return code.

---
 drivers/iio/potentiometer/tpl0102.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/potentiometer/tpl0102.c +1 -2
index 313124b..5c304d4 100644
@@ -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)
--

2.7.0

maintainer Applied
#2 lore raw
Quoted 7 lines · Matt Ranostay

Bit embarrassing that I missed my new driver in the original cleanup :)

Quoted 4 lines · Matt Ranostay

Change i2c_check_functionality condition check return from ENOTSUPP to EOPNOTSUPP which is now the standard return code.

Applied to the togreg branch of iio.git - probably will have to wait for the next cycle now unless there is a big delay in the merge window for some reason.

Jonathan

Quoted 25 lines
Quoted 18 lines
---
 drivers/iio/potentiometer/tpl0102.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/potentiometer/tpl0102.c +1 -2
index 313124b..5c304d4 100644
@@ -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)
--
Quoted 2 lines

2.7.0

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html