diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2024-04-14 16:07:33 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-04-26 06:47:04 +0200 |
commit | 8fc516cb223e7e759d24478c3152db14929d2266 (patch) | |
tree | 6538c97454957e55ba1ee4b5d72cc140f14ce84c /drivers/mmc | |
parent | c5daec6479ffbf42e0262880eb310b0c95bf110b (diff) | |
download | linux-8fc516cb223e7e759d24478c3152db14929d2266.tar.gz linux-8fc516cb223e7e759d24478c3152db14929d2266.tar.bz2 linux-8fc516cb223e7e759d24478c3152db14929d2266.zip |
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-sprd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index 685b1c648901..8776f4287119 100644 --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -439,7 +439,7 @@ static void sdhci_sprd_set_power(struct sdhci_host *host, unsigned char mode, } } -static struct sdhci_ops sdhci_sprd_ops = { +static const struct sdhci_ops sdhci_sprd_ops = { .read_l = sdhci_sprd_readl, .write_l = sdhci_sprd_writel, .write_w = sdhci_sprd_writew, |