mmc: mmci: Remove custom ios handler
The custom boardfile ios handler isn't used anywhere in the kernel. Delete it. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20220427125557.1608825-1-linus.walleij@linaro.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
83961aacb2
commit
3ae2722c93
@ -1748,10 +1748,6 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (host->plat->ios_handler &&
|
|
||||||
host->plat->ios_handler(mmc_dev(mmc), ios))
|
|
||||||
dev_err(mmc_dev(mmc), "platform ios_handler failed\n");
|
|
||||||
|
|
||||||
switch (ios->power_mode) {
|
switch (ios->power_mode) {
|
||||||
case MMC_POWER_OFF:
|
case MMC_POWER_OFF:
|
||||||
if (!IS_ERR(mmc->supply.vmmc))
|
if (!IS_ERR(mmc->supply.vmmc))
|
||||||
|
@ -13,17 +13,11 @@
|
|||||||
* @ocr_mask: available voltages on the 4 pins from the block, this
|
* @ocr_mask: available voltages on the 4 pins from the block, this
|
||||||
* is ignored if a regulator is used, see the MMC_VDD_* masks in
|
* is ignored if a regulator is used, see the MMC_VDD_* masks in
|
||||||
* mmc/host.h
|
* mmc/host.h
|
||||||
* @ios_handler: a callback function to act on specfic ios changes,
|
|
||||||
* used for example to control a levelshifter
|
|
||||||
* mask into a value to be binary (or set some other custom bits
|
|
||||||
* in MMCIPWR) or:ed and written into the MMCIPWR register of the
|
|
||||||
* block. May also control external power based on the power_mode.
|
|
||||||
* @status: if no GPIO line was given to the block in this function will
|
* @status: if no GPIO line was given to the block in this function will
|
||||||
* be called to determine whether a card is present in the MMC slot or not
|
* be called to determine whether a card is present in the MMC slot or not
|
||||||
*/
|
*/
|
||||||
struct mmci_platform_data {
|
struct mmci_platform_data {
|
||||||
unsigned int ocr_mask;
|
unsigned int ocr_mask;
|
||||||
int (*ios_handler)(struct device *, struct mmc_ios *);
|
|
||||||
unsigned int (*status)(struct device *);
|
unsigned int (*status)(struct device *);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user