summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorSai Teja Aluvala <quic_saluvala@quicinc.com>2022-05-27 12:15:43 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-07-22 02:04:14 +0200
commitbde63e9effd3a6ba384707c62abe46c32d22f665 (patch)
treea3601e83aaf3487998700b9e03e2c2cbaf630624 /drivers/bluetooth
parentBluetooth: btusb: Add support of IMC Networks PID 0x3568 (diff)
downloadlinux-bde63e9effd3a6ba384707c62abe46c32d22f665.tar.xz
linux-bde63e9effd3a6ba384707c62abe46c32d22f665.zip
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: 4539ca67fe8ed (Bluetooth: Rename driver .prevent_wake to .wakeup) Signed-off-by: Sai Teja Aluvala <quic_saluvala@quicinc.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_qca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index eab34e24d944..8df11016fd51 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -1588,7 +1588,7 @@ static bool qca_wakeup(struct hci_dev *hdev)
wakeup = device_may_wakeup(hu->serdev->ctrl->dev.parent);
bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup);
- return !wakeup;
+ return wakeup;
}
static int qca_regulator_init(struct hci_uart *hu)