[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <200908111515.42635.mark.langsdorf@amd.com>
Date: Tue, 11 Aug 2009 15:15:42 -0500
From: Mark Langsdorf <mark.langsdorf@....com>
To: lenb@...nel.org, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, matthew.tippett@....com,
samuel.li@....com
Subject: [PATCH][ACPI] AC/DC notifier
Add an ACPI event notifier for AC/DC connect/disconnect events.
Signed-off-by: Mark Langsdorf <mark.langsdorf@....com>
---
drivers/acpi/ac.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index 0df8fcb..656b903 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -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
--
1.6.0.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists