Skip to content

Commit

Permalink
toshiba_acpi: Propagate the hotkey value via genetlink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Azael Avalos authored and Darren Hart committed Nov 21, 2015
1 parent 394cb77 commit 13ae84f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/platform/x86/toshiba_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,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
Expand Down

0 comments on commit 13ae84f

Please sign in to comment.