Browse Source

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>
Srinivas Pandruvada 10 years ago
parent
commit
c2aab3d58b
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/iio/light/hid-sensor-prox.c

+ 0 - 2
drivers/iio/light/hid-sensor-prox.c

@@ -43,8 +43,6 @@ struct prox_state {
 static const struct iio_chan_spec prox_channels[] = {
 static const struct iio_chan_spec prox_channels[] = {
 	{
 	{
 		.type = IIO_PROXIMITY,
 		.type = IIO_PROXIMITY,
-		.modified = 1,
-		.channel2 = IIO_NO_MOD,
 		.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
 		.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_OFFSET) |
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_OFFSET) |
 		BIT(IIO_CHAN_INFO_SCALE) |
 		BIT(IIO_CHAN_INFO_SCALE) |