Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478412 > unrolled thread
| Started by | Azael Avalos <coproscefalo@gmail.com> |
|---|---|
| First post | 2016-09-07 17:30 +0200 |
| Last post | 2016-09-07 17:30 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/2] toshiba_haps: Small updates to driver code Azael Avalos <coproscefalo@gmail.com> - 2016-09-07 17:30 +0200
[PATCH] toshiba_bluetooth: Decouple an error checking status code Azael Avalos <coproscefalo@gmail.com> - 2016-09-07 17:30 +0200
| From | Azael Avalos <coproscefalo@gmail.com> |
|---|---|
| Date | 2016-09-07 17:30 +0200 |
| Subject | [PATCH 0/2] toshiba_haps: Small updates to driver code |
| Message-ID | <seMXv-1t1-23@gated-at.bofh.it> |
These two patches make some small changes to the driver code, the first
splits the error check fro the ACPI status and the HDD protection, and
the second simply changes the printing level of two strings from info
to debug.
Azael Avalos (2):
toshiba_haps: Split ACPI status error check from HDD protection
support
toshiba_haps: Change the error logging level from info to debug
drivers/platform/x86/toshiba_haps.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
--
2.9.3
[toc] | [next] | [standalone]
| From | Azael Avalos <coproscefalo@gmail.com> |
|---|---|
| Date | 2016-09-07 17:30 +0200 |
| Subject | [PATCH] toshiba_bluetooth: Decouple an error checking status code |
| Message-ID | <seMXw-1t1-43@gated-at.bofh.it> |
| In reply to | #1478412 |
This patch simply decouples te error checking of the ACPI status and
the actual BT status, as those two were nested in an if/else check,
but are completely unrelated.
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
---
drivers/platform/x86/toshiba_bluetooth.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c
index 5db495dd..be1d137 100644
--- a/drivers/platform/x86/toshiba_bluetooth.c
+++ b/drivers/platform/x86/toshiba_bluetooth.c
@@ -80,7 +80,9 @@ static int toshiba_bluetooth_present(acpi_handle handle)
if (ACPI_FAILURE(result)) {
pr_err("ACPI call to query Bluetooth presence failed\n");
return -ENXIO;
- } else if (!bt_present) {
+ }
+
+ if (!bt_present) {
pr_info("Bluetooth device not present\n");
return -ENODEV;
}
--
2.9.3
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web