Skip to content

Commit bdbb201

Browse files
krzkstorulf
authored andcommitted
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 <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 6faaea2 commit bdbb201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-esdhc-mcf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static void esdhc_mcf_copy_to_bounce_buffer(struct sdhci_host *host,
335335
data->blksz * data->blocks);
336336
}
337337

338-
static struct sdhci_ops sdhci_esdhc_ops = {
338+
static const struct sdhci_ops sdhci_esdhc_ops = {
339339
.reset = esdhc_mcf_reset,
340340
.set_clock = esdhc_mcf_pltfm_set_clock,
341341
.get_max_clock = esdhc_mcf_pltfm_get_max_clock,

0 commit comments

Comments
 (0)