max44000: Remove scale from proximity
authorCrestez Dan Leonard <leonard.crestez@intel.com>
Fri, 20 May 2016 14:44:36 +0000 (17:44 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sat, 21 May 2016 19:21:17 +0000 (20:21 +0100)
commit14f2461b822dffb116256ee9155f7eca96064f7a
tree112ebc33cc370bd71f2180bf5c307fdef4111ce3
parent1cb0d06a00f2ec0ed8f926ec62f53bc9e12ea55e
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>
drivers/iio/light/max44000.c