projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
921c87b
)
mmc: sdhci_am654: Constify struct regmap_config
author
Javier Carrasco
<javier.carrasco.cruz@gmail.com>
Fri, 5 Jul 2024 10:51:23 +0000
(12:51 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 8 Jul 2024 10:11:31 +0000
(12:11 +0200)
`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>
drivers/mmc/host/sdhci_am654.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci_am654.c
b/drivers/mmc/host/sdhci_am654.c
index 17ad32cfc0c3a6e4819b870dcc2ecfdbab81db44..64e10f7c9faa33cdb5fbb70d82f09d85fa0316fe 100644
(file)
--- 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,