staging: iio: adc: ad799x: Address iio list feedback
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 6 Oct 2010 08:25:49 +0000 (10:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Oct 2010 15:22:44 +0000 (08:22 -0700)
commitaecac19179180b7d6cda13f598e314c0870aee80
tree70209aa05bfd1be1dae95f2c2016d37dcc0e22fd
parente1517c00da6d35911b6451f886d55e22d56393ad
staging: iio: adc: ad799x: Address iio list feedback

Address feedback from Shubhrajyoti Datta:
Cast return value
Michael Hennerich:
Use i2c_smbus_read_byte_data()
Fix return value check

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad799x_core.c