diff options
| author | Eva Rachel Retuya <[email protected]> | 2016-10-10 18:01:31 +0800 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-10-23 19:28:04 +0100 |
| commit | 2296c0623eb741d4985b4fbd5c2c8e48a2795d2a (patch) | |
| tree | a3dc1abf719a63d38442c3cfc8103d5535a952c4 /tools/perf/scripts/python | |
| parent | 6572389bcc1121b4e4112632e289a57a1136989d (diff) | |
staging: iio: cdc: ad7746: 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_DEVICE_ATTR() macro.
Move code from the functions associated with IIO_DEVICE_ATTR() into
respective read and write hooks with the mask set to
IIO_CHAN_INFO_SAMP_FREQ.
Signed-off-by: Eva Rachel Retuya <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions