mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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>
This commit is contained in:
parent
1cb0d06a00
commit
14f2461b82
1 changed files with 0 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue