]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: pm8008: Mark regmap structures as const
authorJohan Hovold <johan+linaro@kernel.org>
Sat, 8 Jun 2024 15:55:18 +0000 (17:55 +0200)
committerLee Jones <lee@kernel.org>
Thu, 13 Jun 2024 17:42:20 +0000 (18:42 +0100)
The regmap irq chip structures can be const so mark them as such.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240608155526.12996-5-johan+linaro@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/qcom-pm8008.c

index 5a77155a63d78316812c7e37bae762b71f099efc..ab55d524c27b6474b118db1720ce0bca99374f73 100644 (file)
@@ -51,7 +51,7 @@ enum {
        POLARITY_LO_INDEX,
 };
 
-static unsigned int pm8008_config_regs[] = {
+static const unsigned int pm8008_config_regs[] = {
        INT_SET_TYPE_OFFSET,
        INT_POL_HIGH_OFFSET,
        INT_POL_LOW_OFFSET,
@@ -129,7 +129,7 @@ static int pm8008_set_type_config(unsigned int **buf, unsigned int type,
        return 0;
 }
 
-static struct regmap_irq_chip pm8008_irq_chip = {
+static const struct regmap_irq_chip pm8008_irq_chip = {
        .name                   = "pm8008_irq",
        .main_status            = I2C_INTR_STATUS_BASE,
        .num_main_regs          = 1,