Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1269835
| From | Azael Avalos <coproscefalo@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink |
| Date | 2015-11-16 04:40 +0100 |
| Message-ID | <qviO5-20s-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The driver uses genetlink to inform userspace of events generated by the system, but the data passed is always zero as there is no data to pass, except for the hotkey event. This patch propagates the hotkey value via genetlink so userspace can make use of it. Signed-off-by: Azael Avalos <coproscefalo@gmail.com> --- drivers/platform/x86/toshiba_acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 7f71f8f..63c231a 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -2966,7 +2966,8 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event) acpi_bus_generate_netlink_event(acpi_dev->pnp.device_class, dev_name(&acpi_dev->dev), - event, 0); + event, (event == 0x80) ? + dev->last_key_event : 0); } #ifdef CONFIG_PM_SLEEP -- 2.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Azael Avalos <coproscefalo@gmail.com> - 2015-11-16 04:40 +0100
[PATCH] toshiba_bluetooth: Add missing newline in toshiba_bluetooth_present function Azael Avalos <coproscefalo@gmail.com> - 2015-11-16 04:40 +0100
Re: [PATCH] toshiba_bluetooth: Add missing newline in toshiba_bluetooth_present function Darren Hart <dvhart@infradead.org> - 2015-11-21 00:30 +0100
Re: [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Darren Hart <dvhart@infradead.org> - 2015-11-21 00:20 +0100
Re: [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Azael Avalos <coproscefalo@gmail.com> - 2015-11-21 01:10 +0100
Re: [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Darren Hart <dvhart@infradead.org> - 2015-11-21 01:50 +0100
csiph-web