Commit 8dc3f01
platform/x86: dell-ddv: Use devm_battery_hook_register
Use devm_battery_hook_register() instead of manually calling
devm_add_action_or_reset() to simplify the code.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20250305053009.378609-3-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>1 parent 7a24829 commit 8dc3f01
1 file changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | 735 | | |
743 | 736 | | |
744 | 737 | | |
| |||
755 | 748 | | |
756 | 749 | | |
757 | 750 | | |
758 | | - | |
759 | | - | |
760 | | - | |
| 751 | + | |
761 | 752 | | |
762 | 753 | | |
763 | 754 | | |
| |||
0 commit comments