projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bad1d0
)
iio: potentiometer: tpl0102: change i2c functionality return code
author
Matt Ranostay
<mranostay@gmail.com>
Sat, 5 Mar 2016 06:55:25 +0000
(22:55 -0800)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 5 Mar 2016 14:00:57 +0000
(14:00 +0000)
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>
drivers/iio/potentiometer/tpl0102.c
patch
|
blob
|
history
diff --git
a/drivers/iio/potentiometer/tpl0102.c
b/drivers/iio/potentiometer/tpl0102.c
index
313124b
..
5c304d4
100644
(file)
--- 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 -E
OP
NOTSUPP;
indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
if (!indio_dev)