staging: iio: adc: ad799x miscellaneous cleanups
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 12 Oct 2010 08:30:51 +0000 (10:30 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Oct 2010 15:59:32 +0000 (08:59 -0700)
commit1139df53533e8a4327f3867c6b32202ac62b19ee
treee852ff3cb37a543d99b872645456f95287867396
parent668413e9e7ad0bc53eeba2465dafd66dbc817996
staging: iio: adc: ad799x miscellaneous cleanups

-Simplify by using iio_alloc_pollfunc helper function
-Print in_scale in decimal format.
-Simplify ring pointer dereferences

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad799x_core.c
drivers/staging/iio/adc/ad799x_ring.c