]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: hid-sensors-prox: Make proximity channel indexed
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 1 Nov 2024 07:46:30 +0000 (07:46 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:43 +0000 (20:33 +0000)
We are going to introduce more proximity channels. Make proximity a
indexed channel now, in a simple patch, so the change can be easily
bisected if there are any issues.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://patch.msgid.link/20241101-hpd-v3-4-e9c80b7c7164@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/hid-sensor-prox.c

index beccc727e1c45f1d5db83c3bfa92397cc06c3791..69c9b233b32590f1ae6370b96a7b4d6734c856bb 100644 (file)
@@ -40,6 +40,7 @@ static const struct iio_chan_spec prox_channels[] = {
                BIT(IIO_CHAN_INFO_SAMP_FREQ) |
                BIT(IIO_CHAN_INFO_HYSTERESIS),
                .scan_index = CHANNEL_SCAN_INDEX_PRESENCE,
+               .indexed = true,
        }
 };