diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-09-22 21:26:59 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-11-19 08:34:21 +0000 |
commit | c4a164f41554d2899bed94bdcc499263f41787b4 (patch) | |
tree | 5eeb68abc08e23d73be687265fb9f7064e7aee25 /drivers/mfd/tc6393xb.c | |
parent | 4bdcbbb9a3a840a4b8105fd971dda319389a593f (diff) | |
download | linux-c4a164f41554d2899bed94bdcc499263f41787b4.tar.gz |
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/tc6393xb.c')
-rw-r--r-- | drivers/mfd/tc6393xb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index 05d5059ca203..3d5b14c60e20 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c @@ -133,7 +133,7 @@ static int tc6393xb_nand_enable(struct platform_device *nand) return 0; } -static struct resource tc6393xb_nand_resources[] = { +static const struct resource tc6393xb_nand_resources[] = { { .start = 0x1000, .end = 0x1007, @@ -151,7 +151,7 @@ static struct resource tc6393xb_nand_resources[] = { }, }; -static struct resource tc6393xb_mmc_resources[] = { +static const struct resource tc6393xb_mmc_resources[] = { { .start = 0x800, .end = 0x9ff, @@ -192,7 +192,7 @@ static const struct resource tc6393xb_ohci_resources[] = { }, }; -static struct resource tc6393xb_fb_resources[] = { +static const struct resource tc6393xb_fb_resources[] = { { .start = 0x5000, .end = 0x51ff, |