]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:56 +0000 (13:57 +0200)
commite41432428bb99aa265f5e58077e9de8a7d37014e
tree930a293ec3dbbc1179a0d14565ffb8e84efc7c7e
parent323fe673d92d43bbc34f958d222b401335a0e2c3
Bluetooth: btmtksdio: refactor btmtksdio_runtime_[suspend|resume]()

[ Upstream commit c7e301d7c85544607ccc52ca5f26d20c59485342 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btmtksdio.c