public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink
@ 2015-11-16  3:33 Azael Avalos
  2015-11-16  3:33 ` [PATCH] toshiba_bluetooth: Add missing newline in toshiba_bluetooth_present function Azael Avalos
  2015-11-20 23:19 ` [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Darren Hart
  0 siblings, 2 replies; 6+ messages in thread
From: Azael Avalos @ 2015-11-16  3:33 UTC (permalink / raw)
  To: Darren Hart, platform-driver-x86, linux-kernel; +Cc: Azael Avalos

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-21  0:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-16  3:33 [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Azael Avalos
2015-11-16  3:33 ` [PATCH] toshiba_bluetooth: Add missing newline in toshiba_bluetooth_present function Azael Avalos
2015-11-20 23:24   ` Darren Hart
2015-11-20 23:19 ` [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Darren Hart
2015-11-21  0:05   ` Azael Avalos
2015-11-21  0:49     ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox