summaryrefslogtreecommitdiff
path: root/drivers/mfd/retu-mfd.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-09-22 21:26:59 +0200
committerLee Jones <lee.jones@linaro.org>2020-11-19 08:34:21 +0000
commitc4a164f41554d2899bed94bdcc499263f41787b4 (patch)
tree5eeb68abc08e23d73be687265fb9f7064e7aee25 /drivers/mfd/retu-mfd.c
parent4bdcbbb9a3a840a4b8105fd971dda319389a593f (diff)
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/retu-mfd.c')
-rw-r--r--drivers/mfd/retu-mfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c
index e7d27b7861c1..c748fd29a220 100644
--- a/drivers/mfd/retu-mfd.c
+++ b/drivers/mfd/retu-mfd.c
@@ -45,7 +45,7 @@ struct retu_dev {
struct regmap_irq_chip_data *irq_data;
};
-static struct resource retu_pwrbutton_res[] = {
+static const struct resource retu_pwrbutton_res[] = {
{
.name = "retu-pwrbutton",
.start = RETU_INT_PWR,
@@ -84,7 +84,7 @@ static struct regmap_irq_chip retu_irq_chip = {
/* Retu device registered for the power off. */
static struct retu_dev *retu_pm_power_off;
-static struct resource tahvo_usb_res[] = {
+static const struct resource tahvo_usb_res[] = {
{
.name = "tahvo-usb",
.start = TAHVO_INT_VBUS,