diff options
author | Eva Rachel Retuya <eraretuya@gmail.com> | 2016-10-05 05:06:21 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-10-11 20:39:38 +0200 |
commit | a13e831fcaa7e8af0387aef629d1835cf39c59f0 (patch) | |
tree | b26170ad93cee5acc8401bc43909f6e539899aea /drivers/iio/accel/Makefile | |
parent | iio: accel: Add driver for the MiraMEMS DA311 3-axis 12-bit digital accelerom... (diff) | |
download | linux-a13e831fcaa7e8af0387aef629d1835cf39c59f0.tar.xz linux-a13e831fcaa7e8af0387aef629d1835cf39c59f0.zip |
staging: iio: ad7192: implement IIO_CHAN_INFO_SAMP_FREQ
This driver predates the availability of IIO_CHAN_INFO_SAMP_FREQ
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_SAMP_FREQ to implement the
sampling_frequency attribute instead of using IIO_DEV_ATTR_SAMP_FREQ()
macro.
Move code from the functions associated with IIO_DEV_ATTR_SAMP_FREQ()
into respective read and write hooks with the mask set to
IIO_CHAN_INFO_SAMP_FREQ.
Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/Makefile')
0 files changed, 0 insertions, 0 deletions