mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
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>
This commit is contained in:
committed by
Jonathan Cameron
parent
ba25cbf5fe
commit
a29542e614
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user