Skip to content

Commit 3ae2722

Browse files
Linus WalleijUlf Hansson
authored andcommitted
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>
1 parent 83961aa commit 3ae2722

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/mmc/host/mmci.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,10 +1748,6 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
17481748
unsigned long flags;
17491749
int ret;
17501750

1751-
if (host->plat->ios_handler &&
1752-
host->plat->ios_handler(mmc_dev(mmc), ios))
1753-
dev_err(mmc_dev(mmc), "platform ios_handler failed\n");
1754-
17551751
switch (ios->power_mode) {
17561752
case MMC_POWER_OFF:
17571753
if (!IS_ERR(mmc->supply.vmmc))

include/linux/amba/mmci.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,11 @@
1313
* @ocr_mask: available voltages on the 4 pins from the block, this
1414
* is ignored if a regulator is used, see the MMC_VDD_* masks in
1515
* mmc/host.h
16-
* @ios_handler: a callback function to act on specfic ios changes,
17-
* used for example to control a levelshifter
18-
* mask into a value to be binary (or set some other custom bits
19-
* in MMCIPWR) or:ed and written into the MMCIPWR register of the
20-
* block. May also control external power based on the power_mode.
2116
* @status: if no GPIO line was given to the block in this function will
2217
* be called to determine whether a card is present in the MMC slot or not
2318
*/
2419
struct mmci_platform_data {
2520
unsigned int ocr_mask;
26-
int (*ios_handler)(struct device *, struct mmc_ios *);
2721
unsigned int (*status)(struct device *);
2822
};
2923

0 commit comments

Comments
 (0)