]> Gentwo Git Trees - linux/.git/commit
watchdog: da9063: Remove __maybe_unused notations
authorFabio Estevam <festevam@denx.de>
Fri, 18 Oct 2024 13:58:21 +0000 (10:58 -0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2024 09:04:40 +0000 (10:04 +0100)
commit90fc2c8e720b149af6b937f702aca273d00c670e
treed775139303cfd211156dc4e93880999dce729dff
parent076354a4d4a73cb792a680a7f40f603c9b145a76
watchdog: da9063: Remove __maybe_unused notations

Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to
handle the .suspend/.resume callbacks.

These macros allow the suspend and resume functions to be automatically
dropped by the compiler when CONFIG_SUSPEND is disabled, without having
to use __maybe_unused notation.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241018135821.274376-2-festevam@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/da9063_wdt.c