]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mt76: mt7921s: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
authorDeren Wu <deren.wu@mediatek.com>
Thu, 15 Sep 2022 08:36:04 +0000 (16:36 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 15 Sep 2022 11:21:39 +0000 (13:21 +0200)
commit89f804bbfa3e571b7f5a3e1ec8f15980d20e2c07
treeb07669d4d3c55b4fe24e54906f5afb21019a1ad4
parentfcbcb63a48256b0365fbc20e506ec1946c89cd0d
wifi: mt76: mt7921s: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()

Use the new DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to
handle the .suspend/.resume callbacks. The new macros allow suspend
and resume functions to be automatically dropped without any #ifdef
guards.

Tested-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/sdio.c