]> git.karo-electronics.de Git - karo-tx-linux.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)
commit182bcaa5c90a66429fcf00a6a02a7bf845bf27c5
tree149bacd08bdb5297c62cccd5c51583b75e3ac081
parente26ffe5124189bce99235fee403a71b719e10b6a
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