diff options
| author | sayli karnik <[email protected]> | 2016-10-10 21:09:17 +0530 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-10-23 19:28:01 +0100 |
| commit | 6572389bcc1121b4e4112632e289a57a1136989d (patch) | |
| tree | a247d2f53a150287c81f20d3a60ed1bdcb2a3c70 /tools/perf/scripts/python | |
| parent | e748e2801a70eb0da6dbc2db1407185a2883533d (diff) | |
staging: iio: cdc: ad7152: Implement IIO_CHAN_INFO_SAMP_FREQ attribute
Attributes that were once privately defined become standard with time
and hence a special global define is used. Hence update driver ad7152 to use
IIO_CHAN_INFO_SAMP_FREQ which is a global define instead of
IIO_DEV_ATTR_SAMP_FREQ.
Move functionality from IIO_DEV_ATTR_SAMP_FREQ attribute into
IIO_CHAN_INFO_SAMP_FREQ to implement the sampling_frequency attribute.
Modify ad7152_read_raw() and ad7152_write_raw() to allow reading and
writing the element as well. Also add a lock in the driver's private
data.
Signed-off-by: sayli karnik <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions