[PATCH 4/4] i2c: muxes: pca954x: mark irq_chip as immutable

From: Pradhan, Sanman

Date: Wed Apr 15 2026 - 13:07:41 EST


From: Sanman Pradhan <psanman@xxxxxxxxxxx>

Mark pca954x_irq_chip as const and add the IRQCHIP_IMMUTABLE flag to
advertise this irq_chip as immutable. This is to make irq_chip
instances const and immutable.

Signed-off-by: Sanman Pradhan <psanman@xxxxxxxxxxx>
---
drivers/i2c/muxes/i2c-mux-pca954x.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c
index 4803231e4c4b..20f7cbb2fb71 100644
--- a/drivers/i2c/muxes/i2c-mux-pca954x.c
+++ b/drivers/i2c/muxes/i2c-mux-pca954x.c
@@ -427,9 +427,10 @@ static int pca954x_irq_set_type(struct irq_data *idata, unsigned int type)
return 0;
}

-static struct irq_chip pca954x_irq_chip = {
+static const struct irq_chip pca954x_irq_chip = {
.name = "i2c-mux-pca954x",
.irq_set_type = pca954x_irq_set_type,
+ .flags = IRQCHIP_IMMUTABLE,
};

static int pca954x_irq_setup(struct i2c_mux_core *muxc)
--
2.34.1