diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-09-22 22:26:59 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-11-19 11:34:21 +0300 |
commit | c4a164f41554d2899bed94bdcc499263f41787b4 (patch) | |
tree | 5eeb68abc08e23d73be687265fb9f7064e7aee25 /drivers/mfd/intel_quark_i2c_gpio.c | |
parent | 4bdcbbb9a3a840a4b8105fd971dda319389a593f (diff) | |
download | linux-c4a164f41554d2899bed94bdcc499263f41787b4.tar.xz |
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/intel_quark_i2c_gpio.c')
-rw-r--r-- | drivers/mfd/intel_quark_i2c_gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c index 84ca7902e1df..fe8ca945f367 100644 --- a/drivers/mfd/intel_quark_i2c_gpio.c +++ b/drivers/mfd/intel_quark_i2c_gpio.c @@ -72,7 +72,7 @@ static const struct dmi_system_id dmi_platform_info[] = { {} }; -static struct resource intel_quark_i2c_res[] = { +static const struct resource intel_quark_i2c_res[] = { [INTEL_QUARK_IORES_MEM] = { .flags = IORESOURCE_MEM, }, @@ -85,7 +85,7 @@ static struct mfd_cell_acpi_match intel_quark_acpi_match_i2c = { .adr = MFD_ACPI_MATCH_I2C, }; -static struct resource intel_quark_gpio_res[] = { +static const struct resource intel_quark_gpio_res[] = { [INTEL_QUARK_IORES_MEM] = { .flags = IORESOURCE_MEM, }, |