watchdog: iTCO_wdt: Using existing macro define covers more scenarios
authorLiu Xinpeng <liuxp11@chinatelecom.cn>
Tue, 26 Apr 2022 10:11:45 +0000 (18:11 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 21 May 2022 08:09:28 +0000 (10:09 +0200)
commit9ef958929fc288a85146d18368f4d2aaac80cdbc
treefb984f9c447ddc7dadcfdd69e62e9eec9bd4867c
parentb3ac0c58fa8934926360268f3d89ec7680644d7b
watchdog: iTCO_wdt: Using existing macro define covers more scenarios

For power management, SET_NOIRQ_SYSTEM_SLEEP_PM_OPS defined for
CONFIG_PM_SLEEP, will point ->suspend_noirq, ->freeze_noirq and
->poweroff_noirq to the same function. Vice versa happens for
->resume_noirq, ->thaw_noirq and ->restore_noirq.

Signed-off-by: Liu Xinpeng <liuxp11@chinatelecom.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/1650967905-3199-1-git-send-email-liuxp11@chinatelecom.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/iTCO_wdt.c