summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorAzael Avalos <coproscefalo@gmail.com>2015-05-04 01:42:09 +0200
committerDarren Hart <dvhart@linux.intel.com>2015-05-11 19:38:18 +0200
commit8798df8845c74d3433997d026abf7ba013a7fcdd (patch)
tree61c0e561b51cc6c6ccaf95c18befb05d706b8a3d /drivers/platform
parenttoshiba_bluetooth: Adapt *_enable, *_notify and *_resume functions to rfkill (diff)
downloadlinux-8798df8845c74d3433997d026abf7ba013a7fcdd.tar.xz
linux-8798df8845c74d3433997d026abf7ba013a7fcdd.zip
toshiba_bluetooth: Change BT status message to debug
The function toshiba_bluetooth_status is currently printing the status of the device whenever it is queried, but since the introduction of the rfkill poll code, this value will get printed everytime the poll occurs. This patch removes the status message from the *_status function, and adds a debug message to the *_sync_status function printing the bluetooth device raw status, killswitch, plug and power states of the device as well. Signed-off-by: Azael Avalos <coproscefalo@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/toshiba_bluetooth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c
index 9867ccdf564f..c5e45089ac51 100644
--- a/drivers/platform/x86/toshiba_bluetooth.c
+++ b/drivers/platform/x86/toshiba_bluetooth.c
@@ -99,8 +99,6 @@ static int toshiba_bluetooth_status(acpi_handle handle)
return -ENXIO;
}
- pr_info("Bluetooth status %llu\n", status);
-
return status;
}
@@ -157,6 +155,9 @@ static int toshiba_bluetooth_sync_status(struct toshiba_bluetooth_dev *bt_dev)
bt_dev->plugged = (status & BT_PLUGGED_MASK) ? true : false;
bt_dev->powered = (status & BT_POWER_MASK) ? true : false;
+ pr_debug("Bluetooth status %d killswitch %d plugged %d powered %d\n",
+ status, bt_dev->killswitch, bt_dev->plugged, bt_dev->powered);
+
return 0;
}