iio: light: signedness bug in stk3310_write_raw()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 May 2015 08:24:25 +0000 (11:24 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 1 Jun 2015 15:57:23 +0000 (16:57 +0100)
commited6e75c7dc5627c7251002936577052ae73ac2db
treea10873bc95a0b45a1d060152a5a5d2881e41b1b4
parent5517547bf44731621338c1a4047196a49c790719
iio: light: signedness bug in stk3310_write_raw()

"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