staging: iio: ad7606: replace range/range_available with corresponding scale
authorEva Rachel Retuya <eraretuya@gmail.com>
Sat, 7 Jan 2017 11:10:23 +0000 (19:10 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 7 Jan 2017 17:56:05 +0000 (12:56 -0500)
commit17be2a2905a6ec9aa27cd59521495e2f490d2af0
tree2996b80960be865ae89ea66184348b941b59ce54
parent04e917305d6a82a18c73047adfe2273718013ee8
staging: iio: ad7606: replace range/range_available with corresponding scale

Eliminate the non-standard attributes in_voltage_range and
in_voltage_range_available. Implement in_voltage_scale_available in place
of these attributes and update the SCALE accordingly. The array
scale_avail is introduced to hold the available scale values.

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606.c