toshiba_acpi: Change *available functions return type
authorAzael Avalos <coproscefalo@gmail.com>
Sat, 1 Aug 2015 03:58:12 +0000 (21:58 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 5 Aug 2015 09:08:02 +0000 (02:08 -0700)
commitea215a3f909c570521a9cc276163837ffa2c621a
tree5a9380761b743740fedec1fc3649bdf46df66350
parent3e07e5baa2af166a6f38a51e14ff036c341a57c7
toshiba_acpi: Change *available functions return type

This patch changes the *available functions return type from int to
void.

The checks for support of their respective features are done inside
such functions and there was no need to return anything as we can
flag the queried feature as supported inside these functions.

The code was adapted accordingly to these changes and two new
variables were created and another was changed from uint to bool.

Also, the function toshiba_acceleremoter_supported was renamed to
toshiba_accelerometer_available to maintain the naming consistency on
the driver.

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