RE: [PATCH] gpio: zynq: fix zynqmp_gpio not an immutable chip warning

From: Datta, Shubhrajyoti
Date: Mon Apr 24 2023 - 00:52:54 EST


[AMD Official Use Only - General]

> From: Manikanta Guntupalli <manikanta.guntupalli@xxxxxxx>
> Date: Wed, Apr 12, 2023 at 8:22 PM
> Subject: [PATCH] gpio: zynq: fix zynqmp_gpio not an immutable chip warning
> To: <michal.simek@xxxxxxxxxx>, <michal.simek@xxxxxxx>,
> <git@xxxxxxx>, <shubhrajyoti.datta@xxxxxxxxxx>,
> <srinivas.neeli@xxxxxxxxxx>, <linus.walleij@xxxxxxxxxx>, <brgl@xxxxxxxx>,
> <linux-gpio@xxxxxxxxxxxxxxx>, <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>,
> <linux-kernel@xxxxxxxxxxxxxxx>
> Cc: <srinivas.goud@xxxxxxx>, <manion05gk@xxxxxxxxx>, Manikanta
> Guntupalli <manikanta.guntupalli@xxxxxxx>
>
>
> Make the struct irq_chip const and flag it as IRQCHIP_IMMUTABLE to fix
> "gpio gpiochip1: (zynqmp_gpio): not an immutable chip" warning.
>
> Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@xxxxxxx>
Reviewed-by: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxx>