Re: [PATCH v2] toshiba_acpi: Add set_fan_status function

2015-07-28 Thread Darren Hart
On Mon, Jul 27, 2015 at 07:22:23PM -0600, Azael Avalos wrote: > 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 TO

[PATCH v2] toshiba_acpi: Add set_fan_status function

2015-07-27 Thread Azael Avalos
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