[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <47A0A9BC.7090705@atmel.com>
Date: Wed, 30 Jan 2008 17:45:48 +0100
From: Nicolas Ferre <nicolas.ferre@...el.com>
To: Pierre Ossman <drzeus@...eus.cx>
CC: Marc Pignat <marc.pignat@...s.ch>,
Andrew Victor <avictor.za@...il.com>,
ARM Linux Mailing List
<linux-arm-kernel@...ts.arm.linux.org.uk>,
Linux Kernel list <linux-kernel@...r.kernel.org>
Subject: [PATCH] at91_mci: minor cleanup
From: Marc Pignat <marc.pignat@...s.ch>
MMC_POWER_ON is a noop, no need to set the power pin again.
Signed-off-by: Marc Pignat <marc.pignat@...s.ch>
Signed-off-by: Nicolas Ferre <nicolas.ferre@...el.com>
---
MMC_POWER_OFF/MMC_POWER_UP turn the power OFF/ON, there is nothing to change
when ios->power_mode==MMC_POWER_ON.
Also changed indentation for the switch (CodingStyle), because there is no other
switch statement in this driver.
--- a/drivers/mmc/host/at91_mci.c
+++ b/drivers/mmc/host/at91_mci.c
@@ -658,13 +658,14 @@ static void at91_mci_set_ios(struct mmc_
/* maybe switch power to the card */
if (host->board->vcc_pin) {
switch (ios->power_mode) {
- case MMC_POWER_OFF:
- at91_set_gpio_value(host->board->vcc_pin, 0);
- break;
- case MMC_POWER_UP:
- case MMC_POWER_ON:
- at91_set_gpio_value(host->board->vcc_pin, 1);
- break;
+ case MMC_POWER_OFF:
+ at91_set_gpio_value(host->board->vcc_pin, 0);
+ break;
+ case MMC_POWER_UP:
+ at91_set_gpio_value(host->board->vcc_pin, 1);
+ break;
+ default:
+ break;
}
}
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists