History

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

Prerequisite to make x86 more irqdomain compliant.

David Woodhouse committed 6 years ago

Commit 2cbd5a41 parent 5d5a9711 file · +10 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/irq/irqdomain.c+10−1
@@ -42,7 +42,16 @@ static inline void debugfs_add_domain_dir(struct irq_domain *d) { } · 41 unmodified lines
4242 static inline void debugfs_remove_domain_dir(struct irq_domain *d) { }
4343 #endif
4444
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+};
4655 EXPORT_SYMBOL_GPL(irqchip_fwnode_ops);
4756
4857 /**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t