diff options
| author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2025-05-28 21:44:17 +0200 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2025-07-24 11:26:55 +0100 |
| commit | 2d23e749be527aadb645def0e55df9659d533e0c (patch) | |
| tree | b96bd2da5dc27aa7f8a6e51171a8aa06793948c9 /drivers/mfd/cs40l50-core.c | |
| parent | e40fc1160d491c3bcaf8e940ae0dde0a7c5e8e14 (diff) | |
mfd: Constify reg_sequence and regmap_irq
Static 'struct reg_sequence' array, 'struct regmap_irq_sub_irq_map' and
'struct regmap_irq_chip ' are not modified so can be changed to const
for more safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20250528194416.567127-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/cs40l50-core.c')
| -rw-r--r-- | drivers/mfd/cs40l50-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/cs40l50-core.c b/drivers/mfd/cs40l50-core.c index 4859a33777a0..c91bccda0858 100644 --- a/drivers/mfd/cs40l50-core.c +++ b/drivers/mfd/cs40l50-core.c @@ -52,7 +52,7 @@ static const struct regmap_irq cs40l50_reg_irqs[] = { CS40L50_GLOBAL_ERROR_MASK), }; -static struct regmap_irq_chip cs40l50_irq_chip = { +static const struct regmap_irq_chip cs40l50_irq_chip = { .name = "cs40l50", .status_base = CS40L50_IRQ1_INT_1, .mask_base = CS40L50_IRQ1_MASK_1, |
