power: supply: gpio-charger: Use GPIOF_ACTIVE_LOW for legacy setup
authorLadislav Michl <ladis@linux-mips.org>
Mon, 5 Mar 2018 18:05:18 +0000 (19:05 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Fri, 9 Mar 2018 15:16:34 +0000 (16:16 +0100)
commitf5fec4cc2949421af74bdd005abd99fcbaf9d0d7
tree45409e7a3f39668ceacd55a501d6626759e062dc
parentd433d04bb70085ceea2815cdb879d4e6fae470d9
power: supply: gpio-charger: Use GPIOF_ACTIVE_LOW for legacy setup

Setting GPIOF_ACTIVE_LOW flag based on platform data gpio_active_low
makes return value of gpiod_get_value_cansleep directly usable.

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