summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorCrestez Dan Leonard <leonard.crestez@intel.com>2016-05-20 17:44:36 +0300
committerJonathan Cameron <jic23@kernel.org>2016-05-21 20:21:17 +0100
commit14f2461b822dffb116256ee9155f7eca96064f7a (patch)
tree112ebc33cc370bd71f2180bf5c307fdef4111ce3 /drivers/iio
parent1cb0d06a00f2ec0ed8f926ec62f53bc9e12ea55e (diff)
downloadlinux-14f2461b822dffb116256ee9155f7eca96064f7a.tar.gz
linux-14f2461b822dffb116256ee9155f7eca96064f7a.tar.bz2
linux-14f2461b822dffb116256ee9155f7eca96064f7a.zip
max44000: Remove scale from proximity
This is not implemented and doesn't really make sense because IIO proximity is unit-less. Remove IIO_CHAN_INFO_SCALE from info_mask because so that the _scale sysfs entry won't appear. This fixes userspace tools like generic_buffer which abort when reads returns an error. Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/light/max44000.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/light/max44000.c b/drivers/iio/light/max44000.c
index e01e58a9bd14..f17cb2ea18f5 100644
--- a/drivers/iio/light/max44000.c
+++ b/drivers/iio/light/max44000.c
@@ -147,7 +147,6 @@ static const struct iio_chan_spec max44000_channels[] = {
{
.type = IIO_PROXIMITY,
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
- .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),
.scan_index = MAX44000_SCAN_INDEX_PRX,
.scan_type = {
.sign = 'u',