staging:iio:adc:ad7152: update scale handling
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 2 Sep 2011 16:25:28 +0000 (17:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:03:30 +0000 (16:03 -0700)
commit9b7244192fb310b3ca8352250e2fd0946ebebc54
treed62c3e6500a36fd5a679cd21eb9088c35986f9ca
parent2b8cb40c9c788929bacbd0c2fdac847e66906805
staging:iio:adc:ad7152: update scale handling

Add scale_available attribute.
fix ad7152_scale_table, values are not sorted descending.
Use IIO_VAL_INT_PLUS_NANO, to increase granularity.
Update scale handling accordingly.

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