summaryrefslogtreecommitdiff
path: root/include/linux/ssb
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-07-13 14:58:23 -0700
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2026-07-17 12:46:24 +0200
commit430efd697374891bbb289054580c29144cfc69f8 (patch)
tree3baae84a0b5db914f917bb332f1e57886c3eca54 /include/linux/ssb
parent8595a9689182d16ae4f9e193d56ee5e7c3c3616d (diff)
downloadlinux-next-430efd697374891bbb289054580c29144cfc69f8.tar.gz
linux-next-430efd697374891bbb289054580c29144cfc69f8.zip
ssb: gpio: Add and register software node for GPIO controller
We want to convert the legacy gpio-keys platform device on BCM47XX boards to use software nodes. To do this properly and allow referencing the GPIO controller by address rather than relying on name-based matching (which is being removed from the gpiolib core), we need to associate the GPIO controller with a software node. Introduce ssb_gpio_swnode, register it, and associate it with the gpio_chip. Assisted-by: Antigravity:gemini-3.5-flash Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Tested-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'include/linux/ssb')
-rw-r--r--include/linux/ssb/ssb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb.h b/include/linux/ssb/ssb.h
index 7fee9afa9458..67cb66f6f5ed 100644
--- a/include/linux/ssb/ssb.h
+++ b/include/linux/ssb/ssb.h
@@ -671,4 +671,6 @@ int ssb_pcibios_plat_dev_init(struct pci_dev *dev);
int ssb_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin);
#endif /* CONFIG_SSB_EMBEDDED */
+extern const struct software_node ssb_gpio_swnode;
+
#endif /* LINUX_SSB_H_ */