Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Ulf Hansson
8fc516cb c5daec64

+1 -1
+1 -1
drivers/mmc/host/sdhci-sprd.c
··· 439 439 } 440 440 } 441 441 442 - static struct sdhci_ops sdhci_sprd_ops = { 442 + static const struct sdhci_ops sdhci_sprd_ops = { 443 443 .read_l = sdhci_sprd_readl, 444 444 .write_l = sdhci_sprd_writel, 445 445 .write_w = sdhci_sprd_writew,