mmc: add a function to get regulators, supplying card's power
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 20 Jun 2012 06:28:43 +0000 (02:28 -0400)
committerChris Ball <cjb@laptop.org>
Sat, 21 Jul 2012 04:02:08 +0000 (00:02 -0400)
commite137788dd115dd9d21759a768dba5fff9685e587
tree93c2bcea03d7e8799db1e575530cdfc4b534a932
parent6de707f200f73af7a58b58b3a5b956cff7b6e228
mmc: add a function to get regulators, supplying card's power

Add a function to get regulators, supplying card's Vdd and Vccq on a
specific host. If a Vdd supplying regulator is found, the function checks,
whether a valid OCR mask can be obtained from it. The Vccq regulator is
optional. A failure to get it is not fatal.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviwed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
include/linux/mmc/host.h