diff options
| author | Alison Schofield <[email protected]> | 2016-06-01 21:28:14 -0700 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-06-03 13:01:14 +0100 |
| commit | afa814841c812cd1a36dbbb124542a487c2df5ee (patch) | |
| tree | cdb8d71bf49fb07b0404138c21a5ecd861e291b7 /tools/perf/scripts/python | |
| parent | 7c7e9dad7017ff5b5f0524ea6d85dcda3c62431e (diff) | |
iio: adc: ad7793: claim direct mode when writing frequency
Driver was checking for direct mode and trying to lock it, but
left a gap where mode could change before the desired operation.
Use iio_device_claim_direct_mode() to guarantee device stays in
direct mode.
Refactor function to clarify look-up followed by lock sequence.
Signed-off-by: Alison Schofield <[email protected]>
Cc: Daniel Baluta <[email protected]>
Acked-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions