Bluetooth: btmtksdio: refactor btmtksdio_runtime_[suspend|resume]()
authorMark Chen <mark-yw.chen@mediatek.com>
Wed, 12 Jan 2022 07:39:12 +0000 (15:39 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 21 Jan 2022 22:49:27 +0000 (23:49 +0100)
commitc7e301d7c85544607ccc52ca5f26d20c59485342
treeea8d04f47596623a0adf6ce4954b0e4ec0c22814
parent2fc967cc0dadad6735448cfbcbc77fe0ea30203d
Bluetooth: btmtksdio: refactor btmtksdio_runtime_[suspend|resume]()

Refactor btmtksdio_runtime_[suspend|resume]() to create the common
funcitons btmtksdio_[fw|drv]_pmctrl() shared with btmtksdio_[open|close]()
to avoid the redundant code as well.

This is also a prerequisite patch for the incoming patches.

Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Mark Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtksdio.c