]> 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)
commit265b3103f90aa642dc67e7f2bb6e095f9279104a
tree2996b80960be865ae89ea66184348b941b59ce54
parent38c7cc88cae3ad2f024933dca8b639e9f37e7a33
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