diff options
author | Eva Rachel Retuya <eraretuya@gmail.com> | 2016-10-08 19:05:40 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-10-08 19:44:32 +0300 |
commit | 4a5936dac5aac2b8a01d861281c0d9fa05251cac (patch) | |
tree | 4d3bd8db10ebad97c1f2a55c1d471c2056354b37 /Documentation/devicetree/bindings/serio | |
parent | b321a38d2407c7e425c54bc09be909a34e49f740 (diff) | |
download | linux-4a5936dac5aac2b8a01d861281c0d9fa05251cac.tar.xz |
staging: iio: ad7606: implement IIO_CHAN_INFO_OVERSAMPLING_RATIO
This driver predates the availability of IIO_CHAN_INFO_OVERSAMPLING_RATIO
attribute wherein usage has some advantages like it can be accessed by
in-kernel consumers as well as reduces the code size.
Therefore, use IIO_CHAN_INFO_OVERSAMPLING_RATIO to implement the
oversampling_ratio attribute instead of using IIO_DEVICE_ATTR() macro.
Move code from the functions associated with IIO_DEVICE_ATTR() into
the read_raw hook as well as add the write_raw hook with both masks set
to IIO_CHAN_INFO_OVERSAMPLING_RATIO.
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>
Diffstat (limited to 'Documentation/devicetree/bindings/serio')
0 files changed, 0 insertions, 0 deletions