Message ID | E1Lfevu-000MzF-00.arvidjaar-mail-ru@mx48.mail.ru (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
On Fri, Mar 06, 2009 at 09:37:50PM +0300, Andrey Borzenkov wrote: > Trivial cleanup below. Also the patch should remove /proc/acpi/toshiba/keys. It will consume hot keys > as soon as they are pressed, so user space watching this file has very little chances to ever see > them. Mm. Actually, thinking about it, the cleanest thing to do would probably be to disable the input device when the proc file is opened.
On 6 марта 2009 21:44:52 Matthew Garrett wrote: > On Fri, Mar 06, 2009 at 09:37:50PM +0300, Andrey Borzenkov wrote: > > Trivial cleanup below. Also the patch should remove > > /proc/acpi/toshiba/keys. It will consume hot keys as soon as they > > are pressed, so user space watching this file has very little > > chances to ever see them. > > Mm. Actually, thinking about it, the cleanest thing to do would > probably be to disable the input device when the proc file is opened. C'mon, really. Let's make it depend on _DEPRECATED and obsolete in 2.6.31. Who needs this now?
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 604f9fa..c334007 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -793,7 +793,7 @@ static int toshiba_acpi_setkeycode(struct input_dev *dev, int scancode, return -EINVAL; } -static void toshiba_acpi_notify(acpi_handle handle, u32 event, void **data) +static void toshiba_acpi_notify(acpi_handle handle, u32 event, void *data) { u32 hci_result, value; struct key_entry *key; @@ -851,7 +851,7 @@ static int toshiba_acpi_setup_keyboard(char *device) return -ENODEV; } - status = acpi_install_notify_handler (handle, ACPI_DEVICE_NOTIFY, + status = acpi_install_notify_handler(handle, ACPI_DEVICE_NOTIFY, toshiba_acpi_notify, NULL); if (ACPI_FAILURE(status)) { printk(MY_INFO "Unable to install hotkey notification\n");