diff options
author | David Heidelberg <david@ixit.cz> | 2025-03-19 21:59:40 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-04-22 19:09:53 +0100 |
commit | a29542e614014a081c507539ff1bb7d21cb046fc (patch) | |
tree | 370a78072b628a7467d786e1cd36a4fdf02cbf0e | |
parent | ba25cbf5fe757f42bb59c674633b78586b1a089d (diff) |
iio: light: al3010: Use unsigned int for the indexing
The integer is used as array index which cannot be negative.
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://patch.msgid.link/20250319-al3010-iio-regmap-v2-1-1310729d0543@ixit.cz
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/light/al3010.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/al3010.c b/drivers/iio/light/al3010.c index 7cbb8b2033009..4c2fd88ab32cd 100644 --- a/drivers/iio/light/al3010.c +++ b/drivers/iio/light/al3010.c @@ -145,7 +145,7 @@ static int al3010_write_raw(struct iio_dev *indio_dev, int val2, long mask) { struct al3010_data *data = iio_priv(indio_dev); - int i; + unsigned int i; switch (mask) { case IIO_CHAN_INFO_SCALE: |