Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

genirq/irqdomain: Implement get_name() method on irqchip fwnodes

Prerequisite to make x86 more irqdomain compliant.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201024213535.443185-23-dwmw2@infradead.org

authored by

David Woodhouse and committed by
Thomas Gleixner
2cbd5a45 5d5a9713

+10 -1
+10 -1
kernel/irq/irqdomain.c
··· 42 42 static inline void debugfs_remove_domain_dir(struct irq_domain *d) { } 43 43 #endif 44 44 45 - const struct fwnode_operations irqchip_fwnode_ops; 45 + static const char *irqchip_fwnode_get_name(const struct fwnode_handle *fwnode) 46 + { 47 + struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode); 48 + 49 + return fwid->name; 50 + } 51 + 52 + const struct fwnode_operations irqchip_fwnode_ops = { 53 + .get_name = irqchip_fwnode_get_name, 54 + }; 46 55 EXPORT_SYMBOL_GPL(irqchip_fwnode_ops); 47 56 48 57 /**