linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][ACPI] AC/DC notifier
@ 2009-08-11 20:15 Mark Langsdorf
  2009-08-11 23:49 ` [PATCH]AC/DC notifier Matthew Garrett
  2009-10-06 17:56 ` Len Brown
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Langsdorf @ 2009-08-11 20:15 UTC (permalink / raw)
  To: lenb, linux-acpi, linux-kernel, matthew.tippett, samuel.li

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

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.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

^ permalink raw reply related	[flat|nested] 7+ messages in thread
[parent not found: <FFAE0590FF35E441901B67BD8BA62E950245ABD9@storexmb3.amd.com>]

end of thread, other threads:[~2009-10-07 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 20:15 [PATCH][ACPI] AC/DC notifier Mark Langsdorf
2009-08-11 23:49 ` [PATCH]AC/DC notifier Matthew Garrett
2009-10-06 17:56 ` Len Brown
     [not found] <FFAE0590FF35E441901B67BD8BA62E950245ABD9@storexmb3.amd.com>
2009-08-12  0:55 ` Matthew Garrett
2009-08-14 16:32   ` [PATCH][ACPI] AC/DC notifier Pavel Machek
2009-08-16  7:40     ` [PATCH]AC/DC notifier Willy Tarreau
2009-10-06 14:53       ` Tippett, Matthew
2009-10-07  7:31         ` [PATCH][ACPI] AC/DC notifier Pavel Machek
2009-10-07  8:16           ` Dave Airlie
2009-10-07 14:05             ` [PATCH]AC/DC notifier Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).