]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba_acpi: Add support for USB Sleep functions under battery
authorAzael Avalos <coproscefalo@gmail.com>
Mon, 19 Jan 2015 01:30:23 +0000 (18:30 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 23 Jan 2015 17:08:25 +0000 (09:08 -0800)
commit3417bead18e5d17fccf4bb93ff86270886799bf6
tree149bacd08bdb5297c62cccd5c51583b75e3ac081
parentee20e736803ca3dd2f3fe98c30d7b1a8362d2864
toshiba_acpi: Add support for USB Sleep functions under battery

Toshiba laptops supporting USB Sleep and Charge also come with a
feature called "USB functions under battery", which what it does when
enabled, is allows the USB Sleep functions when the computer is under
battery power.

This patch adds support to that function, creating a sysfs entry
named "sleep_functions_on_battery", accepting values from 0-100,
where zero disables the function and 1-100 sets the battery level at
which point the USB Sleep functions will be disabled, and printing
the current state of the functon and also the battery level currently
set.

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