mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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
This commit is contained in:
parent
5d5a971338
commit
2cbd5a45e5
1 changed files with 10 additions and 1 deletions
|
@ -42,7 +42,16 @@ static inline void debugfs_add_domain_dir(struct irq_domain *d) { }
|
||||||
static inline void debugfs_remove_domain_dir(struct irq_domain *d) { }
|
static inline void debugfs_remove_domain_dir(struct irq_domain *d) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const struct fwnode_operations irqchip_fwnode_ops;
|
static const char *irqchip_fwnode_get_name(const struct fwnode_handle *fwnode)
|
||||||
|
{
|
||||||
|
struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode);
|
||||||
|
|
||||||
|
return fwid->name;
|
||||||
|
}
|
||||||
|
|
||||||
|
const struct fwnode_operations irqchip_fwnode_ops = {
|
||||||
|
.get_name = irqchip_fwnode_get_name,
|
||||||
|
};
|
||||||
EXPORT_SYMBOL_GPL(irqchip_fwnode_ops);
|
EXPORT_SYMBOL_GPL(irqchip_fwnode_ops);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue