usb/misc: usb4604: Use pm_ptr() macro
authorPaul Cercueil <paul@crapouillou.net>
Thu, 3 Sep 2020 11:25:42 +0000 (13:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Sep 2020 14:53:51 +0000 (16:53 +0200)
commit7aea2a7ddc2eb202e7963bd390d7b069f6e116dd
treec8160f1e3b44f18af2fdf7af7034899f6442c107
parentf2ea828d18fecb89e6669eec747cb88fddedac81
usb/misc: usb4604: Use pm_ptr() macro

Use the newly introduced pm_ptr() macro, and mark the suspend/resume
functions __maybe_unused. These functions can then be moved outside the
CONFIG_PM_SUSPEND block, and the compiler can then process them and
detect build failures independently of the config. If unused, they will
simply be discarded by the compiler.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200903112554.34263-9-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb4604.c