From: Len Brown <lenb@kernel.org>
To: Corentin Chary <corentincj@iksaif.net>
Cc: linux-acpi@vger.kernel.org, mjg59@srcf.ucam.org
Subject: Re: [PATCH 2/4] asus-laptop: restore acpi_generate_proc_event()
Date: Wed, 25 Feb 2009 18:14:13 -0500 (EST) [thread overview]
Message-ID: <alpine.LFD.2.00.0902251814100.19092@localhost.localdomain> (raw)
In-Reply-To: <1234722621-14498-3-git-send-email-corentincj@iksaif.net>
applied
--
Len Brown, Intel Open Source Technology Center
On Sun, 15 Feb 2009, Corentin Chary wrote:
> 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
>
>
next prev parent reply other threads:[~2009-02-25 23:14 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 ` [PATCH 2/4] asus-laptop: restore acpi_generate_proc_event() Corentin Chary
2009-02-15 18:30 ` [PATCH 3/4] eeepc-laptop: " 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 ` Len Brown [this message]
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=alpine.LFD.2.00.0902251814100.19092@localhost.localdomain \
--to=lenb@kernel.org \
--cc=corentincj@iksaif.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox