]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4dc9d23e7ef5eace63a5fd2878a55cae6fc7fb1e
tree112ebc33cc370bd71f2180bf5c307fdef4111ce3
parentae5ef44810191b54c64f6761d924e16ef06c9495
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