From: Mark Langsdorf <mark.langsdorf@amd.com>
To: lenb@kernel.org, linux-acpi@vger.kernel.org,
linux-kernel@vger.kernel.org, matthew.tippett@amd.com,
samuel.li@amd.com
Subject: [PATCH][ACPI] AC/DC notifier
Date: Tue, 11 Aug 2009 15:15:42 -0500 [thread overview]
Message-ID: <200908111515.42635.mark.langsdorf@amd.com> (raw)
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
next reply other threads:[~2009-08-11 20:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 20:15 Mark Langsdorf [this message]
2009-08-11 23:49 ` [PATCH]AC/DC notifier Matthew Garrett
2009-08-11 23:49 ` [PATCH][ACPI] AC/DC notifier Matthew Garrett
2009-10-06 17:56 ` [PATCH]AC/DC notifier Len Brown
2009-10-06 17:56 ` [PATCH][ACPI] AC/DC notifier Len Brown
[not found] <FFAE0590FF35E441901B67BD8BA62E950245ABD9@storexmb3.amd.com>
2009-08-12 0:55 ` Matthew Garrett
2009-08-14 16:32 ` Pavel Machek
2009-08-16 7:40 ` Willy Tarreau
2009-10-06 14:53 ` Tippett, Matthew
2009-10-07 7:31 ` Pavel Machek
2009-10-07 8:16 ` Dave Airlie
2009-10-07 14:05 ` Matthew Garrett
2009-10-07 17:00 ` Tippett, Matthew
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908111515.42635.mark.langsdorf@amd.com \
--to=mark.langsdorf@amd.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew.tippett@amd.com \
--cc=samuel.li@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.