The following commit has been merged in the linux branch: commit 68b92b567c0c5e6f4d0b264d438f97ee5ccbdccc Author: Mark Langsdorf mark.langsdorf@amd.com Date: Tue Aug 11 15:15:42 2009 -0500
ACPI: add AC/DC notifier
Add an ACPI event notifier for AC/DC connect/disconnect events.
Signed-off-by: Mark Langsdorf mark.langsdorf@amd.com Signed-off-by: Len Brown len.brown@intel.com
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 98b9690..b6ed60b 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c @@ -245,6 +245,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