diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-09-22 21:26:59 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-11-19 09:34:21 +0100 |
commit | c4a164f41554d2899bed94bdcc499263f41787b4 (patch) | |
tree | 5eeb68abc08e23d73be687265fb9f7064e7aee25 /drivers/mfd/hi655x-pmic.c | |
parent | mfd: sun4i-gpadc: Constify static struct resource (diff) | |
download | linux-c4a164f41554d2899bed94bdcc499263f41787b4.tar.xz linux-c4a164f41554d2899bed94bdcc499263f41787b4.zip |
mfd: Constify static struct resources
Constify a number of static struct resource. The only usage of the
structs are to assign their address to the resources field in the
mfd_cell struct. This allows the compiler to put them in read-only
memory. Done with the help of Coccinelle.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/hi655x-pmic.c')
-rw-r--r-- | drivers/mfd/hi655x-pmic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c index 7e3959aaa285..d3c86a7a3805 100644 --- a/drivers/mfd/hi655x-pmic.c +++ b/drivers/mfd/hi655x-pmic.c @@ -49,7 +49,7 @@ static struct regmap_config hi655x_regmap_config = { .max_register = HI655X_BUS_ADDR(0x400) - HI655X_STRIDE, }; -static struct resource pwrkey_resources[] = { +static const struct resource pwrkey_resources[] = { { .name = "down", .start = PWRON_D20R_INT, |