diff options
| author | Cosmin Tanislav <[email protected]> | 2022-05-14 21:20:10 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-06-11 14:35:27 +0100 |
| commit | 0bd0bb1fc1e4430dff6856b59ddd63c72780d9be (patch) | |
| tree | 2ba4c300d2f462535f2a6aea251a830dd0a19dee /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | d04d46dd82ad10bdc3c9ce6a513e1fa1336719c4 (diff) | |
iio: accel: adxl367: do not update FIFO watermark on scan mode update
Currently, the driver updates the FIFO watermark inside both
update_scan_mode() and hwfifo_set_watermark(). Inside the IIO core,
hwfifo_set_watermark() is called immediately after update_scan_mode(),
making the first call to set_fifo_samples() redundant.
Remove the first call to set_fifo_samples(), and merge the
set_fifo_samples() function into the set_fifo_watermark()
function. Also, since fifo_set_size is always set inside of
update_scan_mode(), and it cannot be set to 0, remove the
zero check from set_fifo_samples().
Signed-off-by: Cosmin Tanislav <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions