regulator: palmas: Use of_property_read_bool to read "ti,warm-reset" DT property
authorAxel Lin <axel.lin@ingics.com>
Tue, 12 Mar 2013 15:40:19 +0000 (23:40 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 18:16:17 +0000 (18:16 +0000)
commit71f2146f6c22716838ffafd054391826341874f9
tree5dc40060ddab0dcc6a1c6046e4e2a9ae35c70a54
parent7be859f74ce232361c39d92d29da207ce6ee72bb
regulator: palmas: Use of_property_read_bool to read "ti,warm-reset" DT property

It does not make sense to assign return value of of_property_read_u32() to
pdata->reg_init[idx]->warm_reset. Use of_property_read_bool() to read
"ti,warm-reset" DT property instead which will return correct setting
for pdata->reg_init[idx]->warm_reset.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/palmas-regulator.c