diff options
| author | Gwendal Grignou <[email protected]> | 2021-03-09 11:36:14 -0800 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-03-25 19:13:50 +0000 |
| commit | 8a2252201656a147a9d7b1892028cef15869032e (patch) | |
| tree | ad2c28409741d5215755229563afa3720f4d9f08 /tools/perf/scripts/python | |
| parent | 995071d36bb9804b644265450142fcb91c427ee8 (diff) | |
iio: fix devm_iio_trigger_alloc with parent.cocci
Use cocci semantic patch:
@@
expression trigger, P;
@@
trigger = devm_iio_trigger_alloc(P, ...);
...
- trigger->dev.parent = P;
To remove trigger->dev.parent, since it is set by default.
Signed-off-by: Gwendal Grignou <[email protected]>
Reviewed-by: Andy Shevchenko <[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