]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4df26f1d2cb68bde23127cbbd2dc5858aa58c4b
tree2996b80960be865ae89ea66184348b941b59ce54
parent3f2476307a658ada10355bdf3233a8c0d156c710
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