iio: light: hid-sensor-prox: Fix modifier
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 14 Apr 2015 21:53:22 +0000 (14:53 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sat, 18 Apr 2015 18:12:10 +0000 (19:12 +0100)
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>
drivers/iio/light/hid-sensor-prox.c

index 3ecf79ed08ac89bf4f82eedbdb47813ed2997f53..88f21bbe947c8bbd56a3b6a492123f2b30f28936 100644 (file)
@@ -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) |