aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorAzael Avalos <coproscefalo@gmail.com>2015-11-15 22:33:46 -0500
committerDarren Hart <dvhart@linux.intel.com>2015-11-20 19:43:13 -0500
commit13ae84f9486b5a1b3614c3da37cba561b8eb3c7f (patch)
tree019b2acd3a460ed94bea123f171733619cf8e317 /drivers/platform/x86
parent394cb778ca2b9627e5189076e7299e8ab3969c7e (diff)
toshiba_acpi: Propagate the hotkey value via genetlink
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> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/toshiba_acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index c01302989ee4..3aed8a4618ce 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -2808,7 +2808,8 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event)
2808 2808
2809 acpi_bus_generate_netlink_event(acpi_dev->pnp.device_class, 2809 acpi_bus_generate_netlink_event(acpi_dev->pnp.device_class,
2810 dev_name(&acpi_dev->dev), 2810 dev_name(&acpi_dev->dev),
2811 event, 0); 2811 event, (event == 0x80) ?
2812 dev->last_key_event : 0);
2812} 2813}
2813 2814
2814#ifdef CONFIG_PM_SLEEP 2815#ifdef CONFIG_PM_SLEEP