diff options
| author | Hans de Goede <[email protected]> | 2025-06-08 20:40:09 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2025-06-22 00:08:44 +0000 |
| commit | 2986e5b213cd84ac290ae68e73b7629ec8f184a6 (patch) | |
| tree | 2d46ce337957be639b31ef32abc469bdf37471d3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | power: supply: ug3105_battery: Use psy->battery_info (diff) | |
| download | kernel-2986e5b213cd84ac290ae68e73b7629ec8f184a6.tar.gz kernel-2986e5b213cd84ac290ae68e73b7629ec8f184a6.zip | |
power: supply: ug3105_battery: Switch to power_supply_batinfo_ocv2cap()
Replace the hardcoded ocv -> capacity table and the ug3105_get_capacity()
helper with using the generic power_supply_batinfo_ocv2cap() function.
Note this relies on the battery fwnode providing at least 1
"ocv-capacity-table", if that is missing probe() will now fail with EINVAL.
Signed-off-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
