[PW_SID:1154034] [v6] Bluetooth: pm: use DEFINE_SIMPLE_DEV_OPS for pm struct - #669
[PW_SID:1154034] [v6] Bluetooth: pm: use DEFINE_SIMPLE_DEV_OPS for pm struct#669BluezTestBot wants to merge 1 commit into
Conversation
use DEFINE_SIMPLE_DEV_PM_OPS for btmrvl_sdio_pm_ops, and add the value of '.freeze, .thaw, .poweroff, .restore'. if these address are null, may cause error in s4. pm_sleep_ptr() to safely drop the references without triggering compiler warnings. This macro automatically handles CONFIG_PM_SLEEP configuration and generates freeze/thaw/poweroff/restore callbacks, reducing boilerplate code. Signed-off-by: Li Jun <lijun01@kylinos.cn>
|
CheckPatch |
|
VerifyFixes |
|
VerifySignedoff |
|
GitLint |
|
SubjectPrefix |
|
BuildKernel |
|
CheckAllWarning |
|
CheckSparse |
|
BuildKernel32 |
|
CheckKernelLLVM |
|
TestRunnerSetup |
|
IncrementalBuild |
use DEFINE_SIMPLE_DEV_PM_OPS for btmrvl_sdio_pm_ops, and add the value of
'.freeze, .thaw, .poweroff, .restore'. if these address are null,
may cause error in s4. pm_sleep_ptr() to safely drop the references without
triggering compiler warnings. This macro automatically handles
CONFIG_PM_SLEEP configuration and generates freeze/thaw/poweroff/restore
callbacks, reducing boilerplate code.
Signed-off-by: Li Jun lijun01@kylinos.cn
Changes:
-Corrected grammar and spell errors in comment.
-Replace SIMPLE_DEV_OPS with DEFINE_SIMPLE_DEV_OPS.
-Add a description of pm_sleep_ptr().
-Add pm_sleep_ptr(&btmrvl_sdio_pm_ops) for bt_mrvl_sdio struct.
drivers/bluetooth/btmrvl_sdio.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)