diff options
| author | Jakob Hauser <[email protected]> | 2023-05-15 22:57:17 +0200 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2023-06-08 18:17:50 +0100 |
| commit | 4ed21f06a913f79850d8c937c15fda03dde34512 (patch) | |
| tree | 7e2f70930172dbbbc92d4ce4f9d4ea2fd76722e3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | 49b435908b2aeb0f3a8a5256256019594a5adc1c (diff) | |
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 <[email protected]>
Acked-by: Sebastian Reichel <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/a2015d257b145108a3ecdf107a3040362c887fc5.1684182964.git.jahau@rocketmail.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions