Skip to content

Commit c5daec6

Browse files
krzkstorulf
authored andcommitted
mmc: sdhci-omap: 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 bdbb201 commit c5daec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-omap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ static void sdhci_omap_set_timeout(struct sdhci_host *host,
925925
__sdhci_set_timeout(host, cmd);
926926
}
927927

928-
static struct sdhci_ops sdhci_omap_ops = {
928+
static const struct sdhci_ops sdhci_omap_ops = {
929929
.set_clock = sdhci_omap_set_clock,
930930
.set_power = sdhci_omap_set_power,
931931
.enable_dma = sdhci_omap_enable_dma,

0 commit comments

Comments
 (0)