]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: light: al3010: Use unsigned int for the indexing
authorDavid Heidelberg <david@ixit.cz>
Wed, 19 Mar 2025 20:59:40 +0000 (21:59 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:53 +0000 (19:09 +0100)
commita29542e614014a081c507539ff1bb7d21cb046fc
tree370a78072b628a7467d786e1cd36a4fdf02cbf0e
parentba25cbf5fe757f42bb59c674633b78586b1a089d
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>
drivers/iio/light/al3010.c