sdhci: avoid changing voltage needlessly
authorPierre Ossman <pierre@ossman.eu>
Sun, 3 May 2009 18:45:03 +0000 (20:45 +0200)
committerPierre Ossman <pierre@ossman.eu>
Sat, 13 Jun 2009 20:42:57 +0000 (22:42 +0200)
commitae628903ab6cc9a04fdf8d4ff3f0c5b2ffa6f939
treecf505d41100116d31692134fac3b2978cf8bda77
parent7ceeb6a40a4dcc9b9cded6127ad5cdddb79b40ad
sdhci: avoid changing voltage needlessly

Because of granularity issues, sometimes we told the hardware to change
to the voltage we were already at. Rework the logic so this doesn't
happen.

Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h