Skip to contentSkip to conversation

AC/DC notifier

PATCH Applied Mark Langsdorf 3 participants 3 messages Aug 11, 2009 – Oct 6, 2009 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AC/DC notifier

Add an ACPI event notifier for AC/DC connect/disconnect events.

---
 drivers/acpi/ac.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/acpi/ac.c +1 -0
index 0df8fcb..656b903 100644
@@ -243,6 +243,7 @@ static void acpi_ac_notify(struct acpi_device *device, u32 event)
 		acpi_bus_generate_netlink_event(device->pnp.device_class,
 						  dev_name(&device->dev), event,
 						  (u32) ac->state);
+		acpi_notifier_call_chain(device, event, (u32) ac->state);
 #ifdef CONFIG_ACPI_SYSFS_POWER
 		kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE);
 #endif
Signature · 1 line
1.6.0.2
#1 lore raw
Quoted 1 line · Mark Langsdorf

Add an ACPI event notifier for AC/DC connect/disconnect events.

Not that I inherently disagree with this, but what's it likely to be used for?

Signature · 1 line
Matthew Garrett | [email protected]