Skip to content

Commit 1535085

Browse files
javiercarrascocruzstorulf
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/20240705-sdhci_am654-const-regmap_config-v1-1-c166a8d48a66@gmail.com Signed-off-by: Ulf Hansson <[email protected]>
1 parent 921c87b commit 1535085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci_am654.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
/* Command Queue Host Controller Interface Base address */
9191
#define SDHCI_AM654_CQE_BASE_ADDR 0x200
9292

93-
static struct regmap_config sdhci_am654_regmap_config = {
93+
static const struct regmap_config sdhci_am654_regmap_config = {
9494
.reg_bits = 32,
9595
.val_bits = 32,
9696
.reg_stride = 4,

0 commit comments

Comments
 (0)