Message ID | 20240414-mmc-const-sdhci-ops-v1-0-178539d68093@kernel.org |
---|---|
Headers | show |
Series | mmc: Constify struct sdhci_ops | expand |
On 14/04/2024 09:15, Krzysztof Kozlowski wrote: > > -static struct sdhci_ops sdhci_s3c_ops = { > +static const struct sdhci_ops sdhci_s3c_ops_s3c6410 = { > .get_max_clock = sdhci_s3c_get_max_clk, > .set_clock = sdhci_s3c_set_clock, > .get_min_clock = sdhci_s3c_get_min_clock, > @@ -421,6 +423,15 @@ static struct sdhci_ops sdhci_s3c_ops = { > .set_uhs_signaling = sdhci_set_uhs_signaling, > }; > > +static const struct sdhci_ops sdhci_s3c_ops_exynos4 = { > + .get_max_clock = sdhci_cmu_get_max_clock, > + .set_clock = sdhci_cmu_set_clock, > + .get_min_clock = sdhci_cmu_get_min_clock, > + .set_bus_width = sdhci_set_bus_width, > + .reset = sdhci_reset, > + .set_uhs_signaling = sdhci_set_uhs_signaling, > +}; > + > #ifdef CONFIG_OF LKP reported now unused sdhci_s3c_ops_exynos4 for !CONFIG_OF. I will send v2 (today, due to travel) Best regards, Krzysztof