diff options
author | Armin Wolf <[email protected]> | 2024-10-01 23:28:33 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2024-10-02 20:14:50 +0200 |
commit | 86309cbed26139e1caae7629dcca1027d9a28e75 (patch) | |
tree | fbbdef8646483ed3387f9eaca3ba1b9660c97e7b /drivers/platform/x86/intel/pmt/class.c | |
parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) |
ACPI: battery: Simplify battery hook locking
Move the conditional locking from __battery_hook_unregister()
into battery_hook_unregister() and rename the low-level function
to simplify the locking during battery hook removal.
Reviewed-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Pali Rohár <[email protected]>
Signed-off-by: Armin Wolf <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions