Skip to content

Commit 8fc516c

Browse files
krzkstorulf
authored andcommitted
mmc: sdhci-sprd: Constify struct sdhci_ops
The local struct sdhci_ops can be made const for code safety. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Link: https://lore.kernel.org/r/20240414-mmc-const-sdhci-ops-v2-3-262f81faadac@kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent c5daec6 commit 8fc516c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mmc/host/sdhci-sprd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static void sdhci_sprd_set_power(struct sdhci_host *host, unsigned char mode,
439439
}
440440
}
441441

442-
static struct sdhci_ops sdhci_sprd_ops = {
442+
static const struct sdhci_ops sdhci_sprd_ops = {
443443
.read_l = sdhci_sprd_readl,
444444
.write_l = sdhci_sprd_writel,
445445
.write_w = sdhci_sprd_writew,

0 commit comments

Comments
 (0)