diff options
author | Bartosz Golaszewski <[email protected]> | 2023-10-13 09:23:40 +0200 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2023-10-18 09:47:48 +0200 |
commit | dc850faa28ee0ac18e5e192526cdfa1da0b9d951 (patch) | |
tree | 7315949eb116f9a443f1e0cb530b511b7ef5d05b /tools/perf/util/trace-event-scripting.c | |
parent | 8c85a102fc4e5c0c942c10677fa43f7a19baa92f (diff) |
hte: tegra194: don't access struct gpio_chip
Using struct gpio_chip is not safe as it will disappear if the
underlying driver is unbound for any reason. Switch to using reference
counted struct gpio_device and its dedicated accessors.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Tested-by: Dipen Patel <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
[andy: used gpio_device_find_by_fwnode()]
Reviewed-by: Dipen Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions