summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2018-05-10 20:12:19 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-05-12 12:19:27 +0100
commit77b69a0e679b5ca67c5a2b925c195d22dadff12d (patch)
tree52fc3251094f89e3fd7bbf8819912fbc5e874e87 /include/linux
parentbfdf7f1024e535eb66250d9ffea30e599e1e5c5a (diff)
staging: iio: tsl2x7x: convert to use read_avail
Make the sysfs attributes in_proximity0_calibscale_available, and in_intensity0_{calibscale,integration_time}_available be created using info_mask_separate_available on the channel configuration. The driver assumed that the ALS increment was 2.72 ms, and the upper range was 696 ms. Some other supported devices use 2.73 ms - 699 ms. This patch adds support for the multiple ranges. Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions