diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2024-11-01 07:46:30 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-11-03 20:33:43 +0000 |
commit | f7a1fc1ae0d8f379b1a57b911928bf8a330bf94f (patch) | |
tree | 68ba4077d988a322bf027870a7cc6adda62e2336 /drivers/iio | |
parent | 9d2fe9cd02ca5f1e70a7eff0262fb3668a27db0c (diff) | |
download | linux-stable-f7a1fc1ae0d8f379b1a57b911928bf8a330bf94f.tar.gz linux-stable-f7a1fc1ae0d8f379b1a57b911928bf8a330bf94f.tar.bz2 linux-stable-f7a1fc1ae0d8f379b1a57b911928bf8a330bf94f.zip |
iio: hid-sensors-prox: Make proximity channel indexed
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/light/hid-sensor-prox.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c index beccc727e1c4..69c9b233b325 100644 --- a/drivers/iio/light/hid-sensor-prox.c +++ b/drivers/iio/light/hid-sensor-prox.c @@ -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, } }; |