Skip to contentSkip to conversation

at91_mci: minor cleanup

PATCH In review Nicolas Ferre 2 participants 2 messages Jan 30, 2008 – Feb 5, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 at91_mci: minor cleanup

From: Marc Pignat <[email protected]>

MMC_POWER_ON is a noop, no need to set the power pin again.

---
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.

drivers/mmc/host/at91_mci.c +0 -0
@@ -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;
		}
	}
}