Staging: iio/dac/ad5064.c: signedness bug in ad5064_read_raw()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 29 Oct 2011 07:20:42 +0000 (10:20 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:38:32 +0000 (16:38 -0800)
commit23a3b8cc9ce1bec3e21ca6e90566cf30caa760e5
treeb77e46595f176bee05ccbc4f635562db40a78553
parentc8a9f8056f40f6201b84fdddb49a1c62630902c5
Staging: iio/dac/ad5064.c: signedness bug in ad5064_read_raw()

regulator_get_voltage() returns an int so "scale_uv" should be an
int.  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/ad5064.c