OSDN Git Service

regulator: s5m8767: Modify parsing method of the voltage table of buck2/3/4
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 10 Oct 2013 01:41:36 +0000 (10:41 +0900)
committerMark Brown <broonie@linaro.org>
Thu, 24 Oct 2013 10:11:14 +0000 (11:11 +0100)
commit04f9f068a619cc45a8e656e7121df2c772fa14ba
treebe9a1afd940b4af8f38c57a311fb56f3349f8931
parent033054e8603036e43ddfad3155b3e5b78ed49e04
regulator: s5m8767: Modify parsing method of the voltage table of buck2/3/4

The s5m8767 regulator driver parse always the voltage table of buck2/3/4.
If gpio_dvs feature isn't used and dts haven't included the voltage table
of buck2/3/4, s5m8767 regulator driver return error and file probe state.

This patch check only voltage table of buck on s5m8767_pmic_dt_parse_pdata()
if buck[2-4]_gpiodvs is true.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/s5m8767.c