regulator: tps51632: Ensure [base|max]_voltage_uV pdata settings are valid
authorAxel Lin <axel.lin@ingics.com>
Fri, 30 Nov 2012 08:52:49 +0000 (16:52 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 2 Dec 2012 15:15:14 +0000 (00:15 +0900)
commitdbc705183a41f8ae209673fbc555d9923b0ebb7f
tree93e02c1afdc94cce0e0cb71918e7ac6699e19573
parent9997f3ffbbcde01bcd5966eeb26bc41243715021
regulator: tps51632: Ensure [base|max]_voltage_uV pdata settings are valid

If pdata->base_voltage_uV is missing or the settings of pdata->base_voltage_uV
and pdata->max_voltage_uV are out of range, TPS51632_VOLT_VSEL macro
returns wrong vsel.

Thus add checking [base|max]_voltage_uV pdata settings in probe.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps51632-regulator.c
This page took 0.045384 seconds and 5 git commands to generate.