diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-09-22 22:26:53 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-11-19 11:34:21 +0300 |
commit | bf4cceb6e00915556cff80cfe70070e3dbbc14f1 (patch) | |
tree | ab5f9f7b32e7e2510c94b0ae88dcc5cd131cb7ac /drivers/mfd/intel_soc_pmic_chtwc.c | |
parent | a0fa0abeb508360bea82a84ce83aea49769641d3 (diff) | |
download | linux-bf4cceb6e00915556cff80cfe70070e3dbbc14f1.tar.xz |
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>
Diffstat (limited to 'drivers/mfd/intel_soc_pmic_chtwc.c')
-rw-r--r-- | drivers/mfd/intel_soc_pmic_chtwc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/intel_soc_pmic_chtwc.c b/drivers/mfd/intel_soc_pmic_chtwc.c index be84bb2aa837..49c5f71664bc 100644 --- a/drivers/mfd/intel_soc_pmic_chtwc.c +++ b/drivers/mfd/intel_soc_pmic_chtwc.c @@ -41,11 +41,11 @@ enum { CHT_WC_CRIT_IRQ = 7, }; -static struct resource cht_wc_pwrsrc_resources[] = { +static const struct resource cht_wc_pwrsrc_resources[] = { DEFINE_RES_IRQ(CHT_WC_PWRSRC_IRQ), }; -static struct resource cht_wc_ext_charger_resources[] = { +static const struct resource cht_wc_ext_charger_resources[] = { DEFINE_RES_IRQ(CHT_WC_EXT_CHGR_IRQ), }; |