mfd: Constify static struct resources
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 22 Sep 2020 19:26:59 +0000 (21:26 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 19 Nov 2020 08:34:21 +0000 (08:34 +0000)
commitc4a164f41554d2899bed94bdcc499263f41787b4
tree5eeb68abc08e23d73be687265fb9f7064e7aee25
parent4bdcbbb9a3a840a4b8105fd971dda319389a593f
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>
15 files changed:
drivers/mfd/88pm800.c
drivers/mfd/88pm860x-core.c
drivers/mfd/hi655x-pmic.c
drivers/mfd/intel_quark_i2c_gpio.c
drivers/mfd/ioc3.c
drivers/mfd/max8925-core.c
drivers/mfd/rdc321x-southbridge.c
drivers/mfd/retu-mfd.c
drivers/mfd/rk808.c
drivers/mfd/tc3589x.c
drivers/mfd/tc6387xb.c
drivers/mfd/tc6393xb.c
drivers/mfd/tps65090.c
drivers/mfd/tps6586x.c
drivers/mfd/tps80031.c