Commit bde63e9e authored by Sai Teja Aluvala's avatar Sai Teja Aluvala Committed by Luiz Augusto von Dentz

Bluetooth: hci_qca: Return wakeup for qca_wakeup

This fixes the return value of qca_wakeup(), since
.wakeup work inversely with original .prevent_wake.

Fixes: 4539ca67 (Bluetooth: Rename driver .prevent_wake to .wakeup)
Signed-off-by: default avatarSai Teja Aluvala <quic_saluvala@quicinc.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent c69ecb0e
...@@ -1588,7 +1588,7 @@ static bool qca_wakeup(struct hci_dev *hdev) ...@@ -1588,7 +1588,7 @@ static bool qca_wakeup(struct hci_dev *hdev)
wakeup = device_may_wakeup(hu->serdev->ctrl->dev.parent); wakeup = device_may_wakeup(hu->serdev->ctrl->dev.parent);
bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup); bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup);
return !wakeup; return wakeup;
} }
static int qca_regulator_init(struct hci_uart *hu) static int qca_regulator_init(struct hci_uart *hu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment