summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-07-13 14:58:22 -0700
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2026-07-17 12:46:24 +0200
commit8595a9689182d16ae4f9e193d56ee5e7c3c3616d (patch)
treedfcc2feb85b65b69100c75b2471a9badb07580cc /include/linux
parent4a352e45cc773eb771f76eab68325c886310d5b9 (diff)
bcma: 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 bcma_gpio_swnode, register it if the device does not already have a firmware node, 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')
-rw-r--r--include/linux/bcma/bcma.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h
index f02cb3909375..17fc50190014 100644
--- a/include/linux/bcma/bcma.h
+++ b/include/linux/bcma/bcma.h
@@ -486,4 +486,6 @@ extern u32 bcma_core_dma_translation(struct bcma_device *core);
extern unsigned int bcma_core_irq(struct bcma_device *core, int num);
+extern const struct software_node bcma_gpio_swnode;
+
#endif /* LINUX_BCMA_H_ */