Azael Avalos 3e07e5baa2 toshiba_acpi: Add set_fan_status function
This patch adds a new function named "set_fan_status" to complement
its get* counterpart, as well as to avoid code duplication between
"fan_proc_write" and "fan_store".

Also, both functions (get*, set*) are now checking for TOS_FAILURE,
TOS_NOT_SUPPORTED and TOS_SUCCESS (to be on par with the rest of the
HCI/SCI functions), printing an error message, returning -ENODEV and
zero respectively.

The proc and sysfs functions were updated to reflect these changes as
well, returning -EIO for proc, and propagating the error value on the
sysfs functions.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2015-07-28 20:16:45 -07:00
..
2015-07-17 16:39:53 -07:00
2015-06-26 11:54:29 -07:00
2015-07-17 16:39:53 -07:00
2015-07-08 15:14:13 +08:00
2015-07-17 16:39:53 -07:00
2015-07-01 14:44:22 -07:00
2015-06-13 08:44:14 -07:00
2015-07-17 16:39:53 -07:00
2015-07-10 12:16:59 -07:00
2015-07-17 16:39:53 -07:00
2015-06-26 14:51:15 -07:00
2015-07-01 19:40:18 -07:00
2015-06-23 13:32:38 -07:00
2015-07-19 14:18:00 -07:00
2015-07-02 14:40:49 -07:00
2015-07-02 14:40:49 -07:00
2015-06-28 12:32:13 -07:00
2015-07-03 16:02:25 -07:00