diff options
author | Herve Codina <[email protected]> | 2024-06-14 19:32:05 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-06-17 15:48:13 +0200 |
commit | 922ac2cf9fe444c4aff165b9f7e158a9b651647d (patch) | |
tree | 434cf76a4c54d287407fc77f8d484e34246e082f | |
parent | 299d623f5c9ab48e53255cf6b510627f1ef26dfe (diff) |
irqdomain: Constify parameter in is_fwnode_irqchip()
The fwnode parameter has no reason to be a pointer to an un-const struct
fwnode_handle. Indeed, struct fwnode_handle is not supposed to be modified
by the function.
Be consistent with other function performing the same kind of operation
such as is_of_node(), is_acpi_device_node() or is_software_node(): constify
the fwnode parameter.
Signed-off-by: Herve Codina <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | include/linux/irqdomain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index ab8939c8724d..a3b43e357009 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -314,7 +314,7 @@ static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node) extern const struct fwnode_operations irqchip_fwnode_ops; -static inline bool is_fwnode_irqchip(struct fwnode_handle *fwnode) +static inline bool is_fwnode_irqchip(const struct fwnode_handle *fwnode) { return fwnode && fwnode->ops == &irqchip_fwnode_ops; } |