projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
irqdomain: Introduce is_fwnode_irqchip helper
[cascardo/linux.git]
/
include
/
linux
/
irqdomain.h
diff --git
a/include/linux/irqdomain.h
b/include/linux/irqdomain.h
index
a06feda
..
d72fabc
100644
(file)
--- a/
include/linux/irqdomain.h
+++ b/
include/linux/irqdomain.h
@@
-211,6
+211,11
@@
static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node)
return node ? &node->fwnode : NULL;
}
return node ? &node->fwnode : NULL;
}
+static inline bool is_fwnode_irqchip(struct fwnode_handle *fwnode)
+{
+ return fwnode && fwnode->type == FWNODE_IRQCHIP;
+}
+
static inline struct irq_domain *irq_find_matching_host(struct device_node *node,
enum irq_domain_bus_token bus_token)
{
static inline struct irq_domain *irq_find_matching_host(struct device_node *node,
enum irq_domain_bus_token bus_token)
{