xen/arm: irq: Constify the first parameter of platform_get_irq_byname()

platform_get_irq_byname() is not meant to modify the parameter 'np'. So
constify it.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Julien Grall committed 2023-03-29 22:24:12 +01:00
1 parent 08bbc1c02d
commit eef4608fe7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ int irq_set_type(unsigned int irq, unsigned int type);
int platform_get_irq(const struct dt_device_node *device, int index);
int platform_get_irq_byname(struct dt_device_node *np, const char *name);
int platform_get_irq_byname(const struct dt_device_node *np, const char *name);
void irq_set_affinity(struct irq_desc *desc, const cpumask_t *cpu_mask);
+1 -1
View File
@@ -718,7 +718,7 @@ int platform_get_irq(const struct dt_device_node *device, int index)
return irq;
}
int platform_get_irq_byname(struct dt_device_node *np, const char *name)
int platform_get_irq_byname(const struct dt_device_node *np, const char *name)
{
int index;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.