regulator: Replace kzalloc with devm_kzalloc and if-else with a switch-case for da905...
authorAshish Jangam <ashish.jangam@kpitcummins.com>
Thu, 15 Dec 2011 13:29:53 +0000 (18:59 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 17 Dec 2011 09:25:47 +0000 (09:25 +0000)
commit984b5a6ba550f41edda86d0b6deba2b5187f5e44
tree1aba0acdf6860c73a86fa9f521767224ae380e6e
parent47aed92c7740c33f3acbd9dbdefb5ec6f9effdc0
regulator: Replace kzalloc with devm_kzalloc and if-else with a switch-case for da9052-regulator

Reported-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: David Dajun Chen <dchen@diasemi.com>
Signed-off-by: Ashish Jangam <ashish.jangam@kpitcummins.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/da9052-regulator.c