diff options
author | Théo Lebrun <[email protected]> | 2024-02-28 12:28:04 +0100 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2024-02-29 10:22:33 +0100 |
commit | 966942ae493650210b9514f3d4bfc95f78ef0129 (patch) | |
tree | 49165f05e6c0deb06377766942d72824b4aafdc6 /tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c | |
parent | 53cf6b72e074864b94ade97dcb6f30b5ac1a82dc (diff) |
gpio: nomadik: extract GPIO platform driver from drivers/pinctrl/nomadik/
Previously, drivers/pinctrl/nomadik/pinctrl-nomadik.c registered two
platform drivers: pinctrl & GPIO. Move the GPIO aspect to the
drivers/gpio/ folder, as would be expected.
Both drivers are intertwined for a reason; pinctrl requires access to
GPIO registers for pinmuxing, pull-disable, disabling interrupts while
setting the muxing and wakeup control. Information sharing is done
through a shared array containing GPIO chips and a few helper
functions. That shared array is not touched from gpio-nomadik when
CONFIG_PINCTRL_NOMADIK is not defined.
Make no change to the code that moved into gpio-nomadik; there should be
no behavior change following. A few functions are shared and header
comments are added. Checkpatch warnings are addressed. NUM_BANKS is
renamed to NMK_MAX_BANKS.
It is supported to compile gpio-nomadik without pinctrl-nomadik. The
opposite is not true.
Signed-off-by: Théo Lebrun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions