projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a29542e
)
iio: light: al3320a: Use unsigned int for the indexing
author
David Heidelberg
<david@ixit.cz>
Wed, 19 Mar 2025 20:59:41 +0000
(21:59 +0100)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:53 +0000
(19:09 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/iio/light/al3320a.c
b/drivers/iio/light/al3320a.c
index
497ea3f
..
bceda71
100644
(file)
--- a/
drivers/iio/light/al3320a.c
+++ b/
drivers/iio/light/al3320a.c
@@
-163,7
+163,7
@@
static int al3320a_write_raw(struct iio_dev *indio_dev,
int val2, long mask)
{
struct al3320a_data *data = iio_priv(indio_dev);
- int i;
+
unsigned
int i;
switch (mask) {
case IIO_CHAN_INFO_SCALE: