mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
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>
This commit is contained in:
parent
6faaea2c70
commit
bdbb201a61
@ -335,7 +335,7 @@ static void esdhc_mcf_copy_to_bounce_buffer(struct sdhci_host *host,
|
||||
data->blksz * data->blocks);
|
||||
}
|
||||
|
||||
static struct sdhci_ops sdhci_esdhc_ops = {
|
||||
static const struct sdhci_ops sdhci_esdhc_ops = {
|
||||
.reset = esdhc_mcf_reset,
|
||||
.set_clock = esdhc_mcf_pltfm_set_clock,
|
||||
.get_max_clock = esdhc_mcf_pltfm_get_max_clock,
|
||||
|
Loading…
Reference in New Issue
Block a user