> + if (pdata && pdata->signal_voltage_switch)
> + pdata->signal_voltage_switch(set);
> +}
> +
> #ifdef CONFIG_OF
> diff --git a/include/linux/platform_data/pxa_sdhci.h
> b/include/linux/platform_data/pxa_sdhci.h
> index fdf38d6..3b94ab1 100644
> --- a/include/linux/platform_data/pxa_sdhci.h
> +++ b/include/linux/platform_data/pxa_sdhci.h
> @@ -40,6 +40,7 @@
> * @quirks: quirks of platfrom
> * @quirks2: quirks2 of platfrom
> * @pm_caps: pm_caps of platfrom
> + * @signal_voltage_switch: soc/platfrom handling needed for voltage switch
> */
> struct sdhci_pxa_platdata {
> unsigned int flags;
> @@ -54,6 +55,7 @@ struct sdhci_pxa_platdata {
> unsigned int quirks;
> unsigned int quirks2;
> unsigned int pm_caps;
> + void (*signal_voltage_switch)(unsigned int set);
> };
>
Using callback from pdata is in-acceptable.
DT can not doing such way.
/Zhangfei
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html