diff options
author | Quentin Schulz <[email protected]> | 2022-09-30 15:20:32 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2022-10-04 09:20:41 +0200 |
commit | 4635c0e2a7f7f3568cbfccae70121f9835efa62c (patch) | |
tree | c0603be10a52de197968f92905de3738f1602723 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | ee6cac37368b7ec2b3f798fb7d6d4ce7a62db537 (diff) |
pinctrl: rockchip: add pinmux_ops.gpio_set_direction callback
Before the split of gpio and pinctrl sections in their own driver,
rockchip_set_mux was called in pinmux_ops.gpio_set_direction for
configuring a pin in its GPIO function.
This is essential for cases where pinctrl is "bypassed" by gpio
consumers otherwise the GPIO function is not configured for the pin and
it does not work. Such was the case for the sysfs/libgpiod userspace
GPIO handling.
Let's re-implement the pinmux_ops.gpio_set_direction callback so that
the gpio subsystem can request from the pinctrl driver to put the pin in
its GPIO function.
Fixes: 9ce9a02039de ("pinctrl/rockchip: drop the gpio related codes")
Cc: [email protected]
Reviewed-by: Heiko Stuebner <[email protected]>
Signed-off-by: Quentin Schulz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions