]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25cccc97228bdd17f0a2130a4d23e8c47e8d47c0
tree93c2bcea03d7e8799db1e575530cdfc4b534a932
parent7266c461d53b7c04638ee8b56e344dace4f4fcc4
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