All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corentin Chary <corentincj@iksaif.net>
To: lenb@kernel.org
Cc: linux-acpi@vger.kernel.org, mjg59@srcf.ucam.org,
	Corentin Chary <corentincj@iksaif.net>
Subject: [PATCH 2/4] asus-laptop: restore acpi_generate_proc_event()
Date: Sun, 15 Feb 2009 19:30:19 +0100	[thread overview]
Message-ID: <1234722621-14498-3-git-send-email-corentincj@iksaif.net> (raw)
In-Reply-To: <1234722621-14498-2-git-send-email-corentincj@iksaif.net>

Restore acpi_generate_proc_event() for backward
compatibility with old acpi scripts.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
---
 drivers/platform/x86/asus-laptop.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index 56af6cf..eeafc6c 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -815,6 +815,7 @@ static int asus_setkeycode(struct input_dev *dev, int scancode, int keycode)
 static void asus_hotk_notify(acpi_handle handle, u32 event, void *data)
 {
 	static struct key_entry *key;
+	u16 count;
 
 	/* TODO Find a better way to handle events count. */
 	if (!hotk)
@@ -832,9 +833,11 @@ static void asus_hotk_notify(acpi_handle handle, u32 event, void *data)
 		lcd_blank(FB_BLANK_POWERDOWN);
 	}
 
+	count = hotk->event_count[event % 128]++;
+	acpi_bus_generate_proc_event(hotk->device, event, count);
 	acpi_bus_generate_netlink_event(hotk->device->pnp.device_class,
 					dev_name(&hotk->device->dev), event,
-					hotk->event_count[event % 128]++);
+					count);
 
 	if (hotk->inputdev) {
 		key = asus_get_entry_by_scancode(event);
-- 
1.6.1.2



  reply	other threads:[~2009-02-15 18:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-15 18:30 [PATCH 0/4] asus-laptop and eeepc-laptop regressions Corentin Chary
2009-02-15 18:30 ` [PATCH 1/4] eeepc-laptop: Fix Kconfig Corentin Chary
2009-02-15 18:30   ` Corentin Chary [this message]
2009-02-15 18:30     ` [PATCH 3/4] eeepc-laptop: restore acpi_generate_proc_event() Corentin Chary
2009-02-15 18:30       ` [PATCH 4/4] asus-laptop: use select instead of depends on Corentin Chary
2009-02-25 23:19         ` Len Brown
2009-02-25 23:14       ` [PATCH 3/4] eeepc-laptop: restore acpi_generate_proc_event() Len Brown
2009-02-25 23:14     ` [PATCH 2/4] asus-laptop: " Len Brown
2009-02-24 22:44   ` [PATCH 1/4] eeepc-laptop: Fix Kconfig Andrew Morton
2009-02-25  7:57     ` Corentin Chary
2009-02-25  8:03       ` Andrew Morton
2009-02-25  8:37         ` [PATCH] platform/x86: depends instead of select for laptop platform drivers Corentin Chary
2009-02-25 23:25           ` Len Brown
2009-02-25 23:14   ` [PATCH 1/4] eeepc-laptop: Fix Kconfig Len Brown

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=1234722621-14498-3-git-send-email-corentincj@iksaif.net \
    --to=corentincj@iksaif.net \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    /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.