power:lp8727_charger: parsing child node after getting debounce-ms
authorMilo Kim <milo.kim@ti.com>
Tue, 25 Aug 2015 06:07:08 +0000 (15:07 +0900)
committerSebastian Reichel <sre@kernel.org>
Tue, 22 Sep 2015 11:35:29 +0000 (13:35 +0200)
commit9615a29932e8a2c719142ac81481ad7d0e271924
treecca9519b65f1eb56660b1f9158e9272ee751f2e0
parent87d931d56970d014a7074ca57f11baadc4e6d834
power:lp8727_charger: parsing child node after getting debounce-ms

According to lp8727 bindings[*], charging parameter is optional.
So parsing can be skipped in case those properties are undefined.
However, 'debounce-ms' should be read prior to checking the properties.
Otherwise, 'debounce-ms' property will be ignored even it is configured
inside the DT.
So, counting child is processed after updating 'debounce-ms'.

[*] Documentation/devicetree/bindings/power_supply/lp8727_charger.txt

Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/lp8727_charger.c