]> 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)
commit37436cbc7fff7f7394f972b9f40c38bf15e8bd6d
tree93c2bcea03d7e8799db1e575530cdfc4b534a932
parentddab14f964868331b706cb04e3e76a253e7a74b3
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