mmc: core: move ocr-bit to voltage translation into separate function
authorHeiko Stuebner <heiko@sntech.de>
Mon, 12 Oct 2015 16:00:54 +0000 (18:00 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Oct 2015 15:00:10 +0000 (16:00 +0100)
commit310c805e7f133443cd57f880b73557a4a8f54b30
tree5e3986460913c23d5185bbeceabb38275fe1cc1a
parent9eadcc0581a8ccaf4c2378aa1c193fb164304f1d
mmc: core: move ocr-bit to voltage translation into separate function

We will shortly need the calculation of an ocr-bit to the actual
voltage in a second place too, so move it from mmc_regulator_set_ocr
to a common function mmc_ocrbitnum_to_vdd to make that possible.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c