projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5517547
)
iio: light: signedness bug in stk3310_write_raw()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 27 May 2015 08:24:25 +0000
(11:24 +0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 1 Jun 2015 15:57:23 +0000
(16:57 +0100)
"index" needs to be signed for the error handling to work.
Fixes:
be9e6229d676
('iio: light: Add support for Sensortek STK3310')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/stk3310.c
patch
|
blob
|
history
diff --git
a/drivers/iio/light/stk3310.c
b/drivers/iio/light/stk3310.c
index
e79b9d8
..
fee4297
100644
(file)
--- a/
drivers/iio/light/stk3310.c
+++ b/
drivers/iio/light/stk3310.c
@@
-370,7
+370,7
@@
static int stk3310_write_raw(struct iio_dev *indio_dev,
int val, int val2, long mask)
{
int ret;
-
unsigned
int index;
+ int index;
struct stk3310_data *data = iio_priv(indio_dev);
switch (mask) {