@@ -717,7 +717,7 @@ static void battery_hook_unregister_unlocked(struct acpi_battery_hook *hook)
717
717
}
718
718
list_del_init (& hook -> list );
719
719
720
- pr_info ("extension unregistered: %s\n" , hook -> name );
720
+ pr_info ("hook unregistered: %s\n" , hook -> name );
721
721
}
722
722
723
723
void battery_hook_unregister (struct acpi_battery_hook * hook )
@@ -751,18 +751,18 @@ void battery_hook_register(struct acpi_battery_hook *hook)
751
751
if (hook -> add_battery (battery -> bat , hook )) {
752
752
/*
753
753
* If a add-battery returns non-zero,
754
- * the registration of the extension has failed,
754
+ * the registration of the hook has failed,
755
755
* and we will not add it to the list of loaded
756
756
* hooks.
757
757
*/
758
- pr_err ("extension failed to load: %s" , hook -> name );
758
+ pr_err ("hook failed to load: %s" , hook -> name );
759
759
battery_hook_unregister_unlocked (hook );
760
760
goto end ;
761
761
}
762
762
763
763
power_supply_changed (battery -> bat );
764
764
}
765
- pr_info ("new extension : %s\n" , hook -> name );
765
+ pr_info ("new hook : %s\n" , hook -> name );
766
766
end :
767
767
mutex_unlock (& hook_mutex );
768
768
}
@@ -805,10 +805,10 @@ static void battery_hook_add_battery(struct acpi_battery *battery)
805
805
list_for_each_entry_safe (hook_node , tmp , & battery_hook_list , list ) {
806
806
if (hook_node -> add_battery (battery -> bat , hook_node )) {
807
807
/*
808
- * The notification of the extensions has failed, to
809
- * prevent further errors we will unload the extension .
808
+ * The notification of the hook has failed, to
809
+ * prevent further errors we will unload the hook .
810
810
*/
811
- pr_err ("error in extension , unloading: %s" ,
811
+ pr_err ("error in hook , unloading: %s" ,
812
812
hook_node -> name );
813
813
battery_hook_unregister_unlocked (hook_node );
814
814
}
0 commit comments