diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2019-02-26 15:08:47 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-02-27 02:47:39 -0500 |
commit | 6d10cd5cbd6cbd0c4f401bbf3e121ef2240d989b (patch) | |
tree | 1a26b4d3e13e67a7b1ed027ba25dc3aa9097c7b2 /drivers/bluetooth | |
parent | 0ebcddd8e06e94e476f4718af238e9ae67531b04 (diff) |
Bluetooth: hci_qca: Use msleep() instead of open coding it
Call msleep() in qca_set_baudrate() instead of reimplementing it.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_qca.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index f56d2459ea19..82f6cec4f71e 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c | |||
@@ -989,9 +989,7 @@ static int qca_set_baudrate(struct hci_dev *hdev, uint8_t baudrate) | |||
989 | * controller will come back after they receive this HCI command | 989 | * controller will come back after they receive this HCI command |
990 | * then host can communicate with new baudrate to controller | 990 | * then host can communicate with new baudrate to controller |
991 | */ | 991 | */ |
992 | set_current_state(TASK_UNINTERRUPTIBLE); | 992 | msleep(BAUDRATE_SETTLE_TIMEOUT_MS); |
993 | schedule_timeout(msecs_to_jiffies(BAUDRATE_SETTLE_TIMEOUT_MS)); | ||
994 | set_current_state(TASK_RUNNING); | ||
995 | 993 | ||
996 | return 0; | 994 | return 0; |
997 | } | 995 | } |