Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sai Teja Aluvala and committed by
Luiz Augusto von Dentz
bde63e9e c69ecb0e

+1 -1
+1 -1
drivers/bluetooth/hci_qca.c
··· 1588 1588 wakeup = device_may_wakeup(hu->serdev->ctrl->dev.parent); 1589 1589 bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup); 1590 1590 1591 - return !wakeup; 1591 + return wakeup; 1592 1592 } 1593 1593 1594 1594 static int qca_regulator_init(struct hci_uart *hu)