diff options
| author | Dmitry Rokosov <[email protected]> | 2022-06-07 18:39:18 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-06-18 14:26:17 +0100 |
| commit | 4a08069461ac9822855116d24fbf11d5fb223cd1 (patch) | |
| tree | 94ebd37612bc3f5f4f828bdad2215e0b3b2ff2ff /tools/perf/scripts/python | |
| parent | 0691cd473715b293cf7295743c31536f75b4a849 (diff) | |
iio: trigger: warn about non-registered iio trigger getting attempt
As a part of patch series about wrong trigger register() and get()
calls order in the some IIO drivers trigger initialization path:
https://lore.kernel.org/all/[email protected]/
runtime WARN_ONCE() is added to alarm IIO driver authors who make such
a mistake.
When an IIO driver allocates a new IIO trigger, it should register it
before calling the get() operation. In other words, each IIO driver
must abide by IIO trigger alloc()/register()/get() calls order.
Signed-off-by: Dmitry Rokosov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions