toshiba_acpi: Add support for Panel Power ON
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 11 Feb 2015 04:09:19 +0000 (21:09 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 12 Feb 2015 04:40:48 +0000 (20:40 -0800)
commit35d53ceaf7160fa1950142757420ba96921034bf
treeb01bb49e6782bb270f7cb92c70dc290f527c1697
parentbae84195b4cd44767fd127bcd4e61830e426bc7f
toshiba_acpi: Add support for Panel Power ON

Toshiba laptops come with a feature called "Panel Open - Power ON",
which makes the laptop turn on whenever the LID is opened.

This patch adds support for such feature, by creating a sysfs entry
named "panel_power_on", accepting only two values, 0 to disable and
1 to enable such feature, however, a reboot is needed on every mode
change.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c