]> www.infradead.org Git - nvme.git/commit
gpio: regmap: Use generic request/free ops
authorSander Vanheule <sander@svanheule.net>
Tue, 7 Jan 2025 20:16:20 +0000 (21:16 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 13 Jan 2025 08:20:25 +0000 (09:20 +0100)
commitb0fa00fe38f673c986633c11087274deeb7ce7b0
tree969cc805f0af726fbd1d7ef5c3b79f173f2d71b6
parent3c838184407f3e0b28cd86a7275ffc2f9e790efa
gpio: regmap: Use generic request/free ops

Set the gpiochip request and free ops to the generic implementations.
This way a user can provide a gpio-ranges property defined for a pinmux,
easing muxing of gpio functions. Provided that the pin controller
implementents the pinmux op .gpio_request_enable(), pins will
automatically be muxed to their GPIO function when requested.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Acked-by: Michael Walle <mwalle@kernel.org>
Link: https://lore.kernel.org/r/20250107201621.12467-1-sander@svanheule.net
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-regmap.c