projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed859fc
)
iio: potentiometer: tpl0102: remove unneeded i2c check functionality test
author
Matt Ranostay
<mranostay@gmail.com>
Thu, 12 May 2016 04:47:48 +0000
(21:47 -0700)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 14 May 2016 16:56:36 +0000
(17:56 +0100)
Actually I2C_FUNC_SMBUS_WORD_DATA isn't need for this device, and regmap
handles all single byte reads transparently.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/potentiometer/tpl0102.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/potentiometer/tpl0102.c
b/drivers/iio/potentiometer/tpl0102.c
index 5c304d42d7139594c2437257c77516d212535a72..7b6b54531ea235bf315f876d7f51577417604139 100644
(file)
--- a/
drivers/iio/potentiometer/tpl0102.c
+++ b/
drivers/iio/potentiometer/tpl0102.c
@@
-116,10
+116,6
@@
static int tpl0102_probe(struct i2c_client *client,
struct tpl0102_data *data;
struct iio_dev *indio_dev;
- if (!i2c_check_functionality(client->adapter,
- I2C_FUNC_SMBUS_WORD_DATA))
- return -EOPNOTSUPP;
-
indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
if (!indio_dev)
return -ENOMEM;
This page took
0.024787 seconds
and
5
git commands to generate.