commit | 23a3b8cc9ce1bec3e21ca6e90566cf30caa760e5 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Oct 29 10:20:42 2011 +0300 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Sat Nov 26 16:38:32 2011 -0800 |
tree | b77e46595f176bee05ccbc4f635562db40a78553 | |
parent | c8a9f8056f40f6201b84fdddb49a1c62630902c5 [diff] |
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>