diff options
author | Nuno Sá <nuno.sa@analog.com> | 2025-07-01 15:32:10 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-07-01 21:50:51 +0100 |
commit | 988b28a83b658137e58123f4dafc3a1588e1cb2b (patch) | |
tree | 0caa7430e1260fad7f18c6999a7e3d392302e0e7 /tools/perf/builtin-annotate.c | |
parent | bd113a13e1fa51789f55987369b80e1d8bc19389 (diff) |
gpio: adp5585: support gpi events
Add support for adding GPIs to the event FIFO. This is done by adding
irq_chip support. Like this, one can use the input gpio_keys driver as a
"frontend" device and input handler.
As part of this change, we now implement .request() and .free() as we can't
blindly consume all available pins as GPIOs (example: some pins can be
used for forming a keymap matrix).
Also note that the number of pins can now be obtained from the parent,
top level device. Hence the 'max_gpio' variable can be removed.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250701-dev-adp5589-fw-v7-15-b1fcfe9e9826@analog.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions