mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
iio: light: signedness bug in stk3310_write_raw()
"index" needs to be signed for the error handling to work.
Fixes: be9e6229d6
('iio: light: Add support for Sensortek STK3310')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
5517547bf4
commit
ed6e75c7dc
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue