Re: [PATCH v2 3/4] toshiba_acpi: Refactor *{get, set} functions return value

2015-07-28 Thread Darren Hart
On Mon, Jul 27, 2015 at 07:22:27PM -0600, Azael Avalos wrote: > This patch changes the default return value of the driver *{get, set} > functions from 0 (success) to -EIO, since the driver default error > value is -EIO. > > All the functions now check for TOS_FAILURE, TOS_NOT_SUPPORTED and > TOS_S

[PATCH v2 3/4] toshiba_acpi: Refactor *{get, set} functions return value

2015-07-27 Thread Azael Avalos
This patch changes the default return value of the driver *{get, set} functions from 0 (success) to -EIO, since the driver default error value is -EIO. All the functions now check for TOS_FAILURE, TOS_NOT_SUPPORTED and TOS_SUCCESS. On TOS_FAILURE a pr_err message is printed informing the user of