aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2024-10-01 21:28:35 +0000
committerHans de Goede <[email protected]>2024-10-06 10:31:19 +0000
commitb6c57b70a343da512e0fdcae9a097b3aa506b9bb (patch)
treea7a140f996e05be820be3a82d88478075c5dd85d /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentMAINTAINERS: Update Intel In Field Scan(IFS) entry (diff)
downloadkernel-b6c57b70a343da512e0fdcae9a097b3aa506b9bb.tar.gz
kernel-b6c57b70a343da512e0fdcae9a097b3aa506b9bb.zip
platform/x86: dell-laptop: Do not fail when encountering unsupported batteries
If the battery hook encounters a unsupported battery, it will return an error. This in turn will cause the battery driver to automatically unregister the battery hook. On machines with multiple batteries however, this will prevent the battery hook from handling the primary battery, since it will always get unregistered upon encountering one of the unsupported batteries. Fix this by simply ignoring unsupported batteries. Reviewed-by: Pali Rohár <[email protected]> Fixes: ab58016c68cc ("platform/x86:dell-laptop: Add knobs to change battery charge settings") Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions