summaryrefslogtreecommitdiffstats
path: root/drivers/iio/health
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-05-01 15:36:56 -0500
committerJonathan Cameron <jic23@kernel.org>2016-05-04 11:03:49 +0100
commit2e0df3a583af9297259ff5512c1a843220492770 (patch)
tree1825c3cc4664cee0b08a54044494f596a51b621a /drivers/iio/health
parent9d3d9a57e4242b155b965f58639a230b212a0ea5 (diff)
downloadlinux-2e0df3a583af9297259ff5512c1a843220492770.tar.bz2
iio: health/afe440x: Remove unneeded offset handling
No channel in the afe4403 driver has IIO_CHAN_INFO_OFFSET set so remove the handlers for this. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/health')
-rw-r--r--drivers/iio/health/afe4403.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/iio/health/afe4403.c b/drivers/iio/health/afe4403.c
index bcff5280c5c9..cac60909a585 100644
--- a/drivers/iio/health/afe4403.c
+++ b/drivers/iio/health/afe4403.c
@@ -293,14 +293,6 @@ static int afe4403_read_raw(struct iio_dev *indio_dev,
if (ret)
return ret;
return IIO_VAL_INT;
- case IIO_CHAN_INFO_OFFSET:
- ret = regmap_read(afe->regmap, reg_info.offreg,
- val);
- if (ret)
- return ret;
- *val &= reg_info.mask;
- *val >>= reg_info.shift;
- return IIO_VAL_INT;
}
break;
case IIO_CURRENT:
@@ -333,15 +325,6 @@ static int afe4403_write_raw(struct iio_dev *indio_dev,
const struct afe440x_reg_info reg_info = afe4403_reg_info[chan->address];
switch (chan->type) {
- case IIO_INTENSITY:
- switch (mask) {
- case IIO_CHAN_INFO_OFFSET:
- return regmap_update_bits(afe->regmap,
- reg_info.offreg,
- reg_info.mask,
- (val << reg_info.shift));
- }
- break;
case IIO_CURRENT:
switch (mask) {
case IIO_CHAN_INFO_RAW: