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

mmc: sdhci-esdhc-mcf: 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>
Link: https://lore.kernel.org/r/20240414-mmc-const-sdhci-ops-v2-1-262f81faadac@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Ulf Hansson
bdbb201a 6faaea2c

+1 -1
+1 -1
drivers/mmc/host/sdhci-esdhc-mcf.c
··· 335 335 data->blksz * data->blocks); 336 336 } 337 337 338 - static struct sdhci_ops sdhci_esdhc_ops = { 338 + static const struct sdhci_ops sdhci_esdhc_ops = { 339 339 .reset = esdhc_mcf_reset, 340 340 .set_clock = esdhc_mcf_pltfm_set_clock, 341 341 .get_max_clock = esdhc_mcf_pltfm_get_max_clock,