diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2015-04-14 14:53:22 -0700 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-18 19:12:10 +0100 |
commit | c2aab3d58b96002555a3e70004f593b043830248 (patch) | |
tree | 645d5b4677d0985a9e6f34aded0235630fa5a31e | |
parent | 937125aca00e0478c4024afe58bc620a7bbe2a93 (diff) | |
download | linux-c2aab3d58b96002555a3e70004f593b043830248.tar.bz2 |
iio: light: hid-sensor-prox: Fix modifier
Currently in_proximity_(null)_raw is getting presented as raw sysfs
attribute. Same with the scan_elements.
The modifier doesn't apply to this channel.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/light/hid-sensor-prox.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c index 3ecf79ed08ac..88f21bbe947c 100644 --- a/drivers/iio/light/hid-sensor-prox.c +++ b/drivers/iio/light/hid-sensor-prox.c @@ -43,8 +43,6 @@ struct prox_state { static const struct iio_chan_spec prox_channels[] = { { .type = IIO_PROXIMITY, - .modified = 1, - .channel2 = IIO_NO_MOD, .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_OFFSET) | BIT(IIO_CHAN_INFO_SCALE) | |