aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Ribalda <[email protected]>2024-11-01 07:46:30 +0000
committerJonathan Cameron <[email protected]>2024-11-03 20:33:43 +0000
commitf7a1fc1ae0d8f379b1a57b911928bf8a330bf94f (patch)
tree68ba4077d988a322bf027870a7cc6adda62e2336
parent9d2fe9cd02ca5f1e70a7eff0262fb3668a27db0c (diff)
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
-rw-r--r--drivers/iio/light/hid-sensor-prox.c1
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,
}
};