Staging: iio/dac/ad5360.c: signedness bug in ad5360_read_raw()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 29 Oct 2011 07:21:06 +0000 (10:21 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:38:32 +0000 (16:38 -0800)
commit685e010748f64a752a981254101e976d7291d16c
treea33e16b0b20e8a117cb7e613e85f6dbf3201714f
parent23a3b8cc9ce1bec3e21ca6e90566cf30caa760e5
Staging: iio/dac/ad5360.c: signedness bug in ad5360_read_raw()

ad5360_get_channel_vref() returns an int and scale_uv should be the
same.  Making it unsigned here breaks the error handling.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/dac/ad5360.c