[PATCH v2 3/7] pinctrl: samsung: Constify "struct irq_chip *" parameter in to_exynos_irq_chip()
Christophe JAILLET <[email protected]>
| Newsgroups | org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <25b70558d35ce4686eed3520588581c5f2f880f8.1780343698.git.christophe.jaillet@wanadoo.fr> |
to_exynos_irq_chip() doesn't modify its 'chip' parameter. So change the prototype of this function to accept const struct irq_chip pointer. Signed-off-by: Christophe JAILLET <[email protected]> --- Compile tested only Changes in v2: - New patch v1: none --- drivers/pinctrl/samsung/pinctrl-exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.c b/drivers/pinctrl/samsung/pinctrl-exynos.c index 81fe0b08a9af..e8b2d47ebe45 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos.c @@ -50,7 +50,7 @@ static u32 eint_wake_mask_values[MAX_WAKEUP_REG] = { EXYNOS_EINT_WAKEUP_MASK_DIS EXYNOS_EINT_WAKEUP_MASK_DISABLED, EXYNOS_EINT_WAKEUP_MASK_DISABLED}; -static inline struct exynos_irq_chip *to_exynos_irq_chip(struct irq_chip *chip) +static inline struct exynos_irq_chip *to_exynos_irq_chip(const struct irq_chip *chip) { return container_of(chip, struct exynos_irq_chip, chip); } -- 2.54.0