diff options
author | Jakob Hauser <jahau@rocketmail.com> | 2023-05-15 23:57:17 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-06-08 20:17:50 +0300 |
commit | 4ed21f06a913f79850d8c937c15fda03dde34512 (patch) | |
tree | 7e2f70930172dbbbc92d4ce4f9d4ea2fd76722e3 /fs/drop_caches.c | |
parent | 49b435908b2aeb0f3a8a5256256019594a5adc1c (diff) | |
download | linux-4ed21f06a913f79850d8c937c15fda03dde34512.tar.xz |
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 'fs/drop_caches.c')
0 files changed, 0 insertions, 0 deletions