Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: lp8788: Constify static struct resource

Constify a couple of static struct resource. The only usage of the
structs is 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>

authored by

Rikard Falkeborn and committed by
Lee Jones
5a1acf2b f977284a

+2 -2
+2 -2
drivers/mfd/lp8788.c
··· 34 34 .num_resources = num_resource, \ 35 35 } 36 36 37 - static struct resource chg_irqs[] = { 37 + static const struct resource chg_irqs[] = { 38 38 /* Charger Interrupts */ 39 39 { 40 40 .start = LP8788_INT_CHG_INPUT_STATE, ··· 58 58 }, 59 59 }; 60 60 61 - static struct resource rtc_irqs[] = { 61 + static const struct resource rtc_irqs[] = { 62 62 { 63 63 .start = LP8788_INT_RTC_ALARM1, 64 64 .end = LP8788_INT_RTC_ALARM2,