]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Use mmc core regulator infrastucture
authorTim Kryger <tim.kryger@gmail.com>
Fri, 13 Jun 2014 17:13:56 +0000 (10:13 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2014 09:25:59 +0000 (11:25 +0200)
commitc8367f56879aee5104137405ea156465f071249c
tree3e8b950042c06d5e13763e46498e10c93f6cd661
parentf7764d2d6a5372131bb80c15d0cf8437530ff1f2
mmc: sdhci: Use mmc core regulator infrastucture

Switch the common SDHCI code over to use mmc_host's regulator pointers
and remove the ones in the sdhci_host structure.  Additionally, use the
common mmc_regulator_get_supply function to get the regulators and set
the ocr_avail mask.

This change sets the ocr_avail directly based upon the voltage ranges
supported which ensures ocr_avail is set correctly while allowing the
use of regulators that can't provide exactly 1.8v, 3.0v, or 3.3v.

Signed-off-by: Tim Kryger <tim.kryger@gmail.com>
Signed-off-by: Markus Mayer <markus.mayer@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
include/linux/mmc/sdhci.h