]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: light: al3320a: Use unsigned int for the indexing
authorDavid Heidelberg <david@ixit.cz>
Wed, 19 Mar 2025 20:59:41 +0000 (21:59 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:53 +0000 (19:09 +0100)
commitcddd6a959c1e4833402650a098c5de8c876936b3
treeaff02a913e06055c3b5820a707b4d02e7888b30a
parenta29542e614014a081c507539ff1bb7d21cb046fc
iio: light: al3320a: 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-2-1310729d0543@ixit.cz
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/al3320a.c