]> git.baikalelectronics.ru Git - kernel.git/commit
max17042: propagate of_node to power supply device
authorPierre Bourdon <delroth@google.com>
Tue, 20 Feb 2018 15:03:18 +0000 (16:03 +0100)
committerSebastian Reichel <sre@kernel.org>
Mon, 12 Mar 2018 13:29:52 +0000 (14:29 +0100)
commitedf93d0a771b1423a0a02af9c4635e7caa0b9f2e
treeb8f23facbbc9d7a1a5610af53f546b86a8febeca
parentc2704a543f438e8c799eba89e33fa828b6bab56d
max17042: propagate of_node to power supply device

max17042_get_status uses the core power_supply_am_i_supplied. That
function relies on DT properties to figure out the power supply
topology, and will error out without DT.

Fixes max17042 battery status being reported as "unknown".

Signed-off-by: Pierre Bourdon <delroth@google.com>
Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/max17042_battery.c