mfd: intel: Constify static struct resource
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 22 Sep 2020 19:26:53 +0000 (21:26 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 19 Nov 2020 08:34:21 +0000 (08:34 +0000)
commitbf4cceb6e00915556cff80cfe70070e3dbbc14f1
treeab5f9f7b32e7e2510c94b0ae88dcc5cd131cb7ac
parenta0fa0abeb508360bea82a84ce83aea49769641d3
mfd: intel: Constify static struct resource

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>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_msic.c
drivers/mfd/intel_soc_pmic_bxtwc.c
drivers/mfd/intel_soc_pmic_chtdc_ti.c
drivers/mfd/intel_soc_pmic_chtwc.c
drivers/mfd/intel_soc_pmic_crc.c