diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-07-05 12:51:23 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-07-08 12:11:31 +0200 |
commit | 1535085f99c554460966995ecec934b74185cd5c (patch) | |
tree | 944bcfd9544a6afd21f98567030065b29c8ac788 /drivers/mmc | |
parent | 921c87ba3893b5d3608e7f248366266b40b86c75 (diff) | |
download | lwn-1535085f99c554460966995ecec934b74185cd5c.tar.gz lwn-1535085f99c554460966995ecec934b74185cd5c.zip |
mmc: sdhci_am654: Constify struct regmap_config
`sdhci_am654_regmap_config` is not modified and can be declared as const
to move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240705-sdhci_am654-const-regmap_config-v1-1-c166a8d48a66@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci_am654.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index 17ad32cfc0c3..64e10f7c9faa 100644 --- a/drivers/mmc/host/sdhci_am654.c +++ b/drivers/mmc/host/sdhci_am654.c @@ -90,7 +90,7 @@ /* Command Queue Host Controller Interface Base address */ #define SDHCI_AM654_CQE_BASE_ADDR 0x200 -static struct regmap_config sdhci_am654_regmap_config = { +static const struct regmap_config sdhci_am654_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, |