power: supply: gpio-charger: Remove pdata from gpio_charger
authorLadislav Michl <ladis@linux-mips.org>
Mon, 5 Mar 2018 18:05:55 +0000 (19:05 +0100)
committerSebastian Reichel <sre@kernel.org>
Fri, 9 Mar 2018 15:50:28 +0000 (16:50 +0100)
commitd47c1e4b2f51e81683b087480401b9b42b2a58fd
tree63fecd49162f059fb2de36cc9075a0ac31d922d5
parentf5fec4cc2949421af74bdd005abd99fcbaf9d0d7
power: supply: gpio-charger: Remove pdata from gpio_charger

Platform data are now used only during probe time, so remove
them from gpio_charger structure and consolidate probing
function accordingly.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
[Replace of_property_read_string with dev_property_read_string]
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/gpio-charger.c