irq_hw_number_t hwirq, int node,
const struct irq_affinity_desc *affinity);
-static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node)
-{
- return node ? &node->fwnode : NULL;
-}
-
extern const struct fwnode_operations irqchip_fwnode_ops;
static inline bool is_fwnode_irqchip(const struct fwnode_handle *fwnode)
static inline struct irq_domain *irq_find_matching_host(struct device_node *node,
enum irq_domain_bus_token bus_token)
{
- return irq_find_matching_fwnode(of_node_to_fwnode(node), bus_token);
+ return irq_find_matching_fwnode(of_fwnode_handle(node), bus_token);
}
static inline struct irq_domain *irq_find_host(struct device_node *node)
const struct irq_domain_ops *ops,
void *host_data)
{
- return irq_domain_create_simple(of_node_to_fwnode(of_node), size, first_irq, ops, host_data);
+ return irq_domain_create_simple(of_fwnode_handle(of_node), size, first_irq, ops, host_data);
}
/**
void *host_data)
{
struct irq_domain_info info = {
- .fwnode = of_node_to_fwnode(of_node),
+ .fwnode = of_fwnode_handle(of_node),
.size = size,
.hwirq_max = size,
.ops = ops,
void *host_data)
{
struct irq_domain_info info = {
- .fwnode = of_node_to_fwnode(of_node),
+ .fwnode = of_fwnode_handle(of_node),
.hwirq_max = max_irq,
.direct_max = max_irq,
.ops = ops,
void *host_data)
{
struct irq_domain_info info = {
- .fwnode = of_node_to_fwnode(of_node),
+ .fwnode = of_fwnode_handle(of_node),
.hwirq_max = ~0U,
.ops = ops,
.host_data = host_data,
void *host_data)
{
return irq_domain_create_hierarchy(parent, flags, size,
- of_node_to_fwnode(node),
+ of_fwnode_handle(node),
ops, host_data);
}
}
#endif
+/* Deprecated functions. Will be removed in the merge window */
+static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node)
+{
+ return node ? &node->fwnode : NULL;
+}
+
#else /* CONFIG_IRQ_DOMAIN */
static inline void irq_dispose_mapping(unsigned int virq) { }
static inline struct irq_domain *irq_find_matching_fwnode(
const struct irq_domain_ops *ops,
void *host_data)
{
- return irq_domain_create_legacy(of_node_to_fwnode(of_node), size,
+ return irq_domain_create_legacy(of_fwnode_handle(of_node), size,
first_irq, first_hwirq, ops, host_data);
}
EXPORT_SYMBOL_GPL(irq_domain_add_legacy);
{
int i;
- fwspec->fwnode = of_node_to_fwnode(np);
+ fwspec->fwnode = of_fwnode_handle(np);
fwspec->param_count = count;
for (i = 0; i < count; i++)