]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: mmci: Add private pointer for variant
authorLudovic Barre <ludovic.barre@st.com>
Tue, 28 Jan 2020 09:06:31 +0000 (10:06 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:40 +0000 (14:35 +0100)
In variant init function, some references may be allocated for variant
specific usage. Add a private void* to mmci_host struct allows at variant
functions to access on this references by mmci_host structure.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Link: https://lore.kernel.org/r/20200128090636.13689-5-ludovic.barre@st.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.h

index 55acc0971a4441cc5be2ce7d01e84bc04025b308..ddcdfb827996dabffc70aa1e78992b1fd741db1a 100644 (file)
@@ -410,6 +410,7 @@ struct mmci_host {
        struct mmc_host_ops     *mmc_ops;
        struct mmci_host_ops    *ops;
        struct variant_data     *variant;
+       void                    *variant_priv;
        struct pinctrl          *pinctrl;
        struct pinctrl_state    *pins_opendrain;