diff options
author | Jakob Hauser <jahau@rocketmail.com> | 2023-05-15 22:57:17 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-06-08 19:17:50 +0200 |
commit | 4ed21f06a913f79850d8c937c15fda03dde34512 (patch) | |
tree | 7e2f70930172dbbbc92d4ce4f9d4ea2fd76722e3 /drivers/clk | |
parent | power: supply: rt5033_battery: Move struct rt5033_battery to battery driver (diff) | |
download | linux-4ed21f06a913f79850d8c937c15fda03dde34512.tar.xz linux-4ed21f06a913f79850d8c937c15fda03dde34512.zip |
power: supply: rt5033_battery: Adopt status property from charger
The rt5033-battery fuelgauge can't get a status by itself. The rt5033-charger
can, let's get this value.
To get the charger as a "supplier" from the devicetree, the "of_node" needs
to be initiated.
Additionally, in the probe function replace dev_err() with dev_err_probe(),
this will avoid printing an error for -EPROBE_DEFER when the battery driver
probes before the charger driver.
Signed-off-by: Jakob Hauser <jahau@rocketmail.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/a2015d257b145108a3ecdf107a3040362c887fc5.1684182964.git.jahau@rocketmail.com
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions