Paul Cercueil
3b956c0aae
watchdog: bcm7038_wdt: Remove #ifdef guards for PM related functions
...
Use the new 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 #ifdef guards. Not using #ifdef guards means that the code is
always compiled independently of any Kconfig option, and thanks to that
bugs and regressions are easier to catch.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220628193449.160585-2-paul@crapouillou.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
2022-07-23 14:21:25 +02:00
..
2019-10-23 17:23:46 +02:00
2020-08-05 18:42:53 +02:00
2020-08-05 18:42:53 +02:00
2020-08-05 18:42:53 +02:00
2022-01-05 10:38:37 +01:00
2021-10-26 21:31:08 +02:00
2020-05-25 08:55:46 +02:00
2021-04-09 14:54:23 -07:00
2019-05-21 11:28:40 +02:00
2022-03-27 17:04:08 +02:00
2019-10-23 17:23:46 +02:00
2019-05-05 21:02:12 +02:00
2020-01-27 15:55:44 +01:00
2020-08-05 18:42:53 +02:00
2021-08-22 10:28:08 +02:00
2022-07-23 14:21:25 +02:00
2020-08-05 18:42:46 +02:00
2021-03-10 10:58:44 +00:00
2021-06-21 08:49:09 +02:00
2020-10-14 15:02:24 +02:00
2021-03-17 13:16:18 -07:00
2021-03-17 13:16:18 -07:00
2019-07-08 15:13:04 +02:00
2019-05-05 21:02:16 +02:00
2021-10-26 21:31:05 +02:00
2022-05-21 10:07:31 +02:00
2021-12-28 14:03:03 +01:00
2021-11-01 20:18:09 +01:00
2021-06-21 08:49:14 +02:00
2019-07-15 08:49:11 +02:00
2021-06-21 08:48:59 +02:00
2019-07-08 20:35:11 +02:00
2019-05-05 21:02:19 +02:00
2021-06-21 08:49:09 +02:00
2022-07-23 14:18:46 +02:00
2019-07-08 15:13:06 +02:00
2020-08-05 18:42:53 +02:00
2020-12-13 16:17:41 +01:00
2019-07-08 19:39:44 +02:00
2022-06-09 12:20:34 +02:00
2021-06-21 08:49:00 +02:00
2019-07-08 15:13:06 +02:00
2020-08-05 18:42:53 +02:00
2019-10-23 17:23:46 +02:00
2019-07-08 20:46:48 +02:00
2019-06-19 17:09:55 +02:00
2022-03-27 17:04:07 +02:00
2020-10-14 15:02:26 +02:00
2021-06-21 08:49:14 +02:00
2019-10-23 17:23:46 +02:00
2021-01-25 20:05:32 +02:00
2021-06-21 08:49:04 +02:00
2021-02-07 14:41:18 +01:00
2020-03-10 10:20:27 +01:00
2020-03-10 10:20:27 +01:00
2022-05-21 10:09:28 +02:00
2022-03-27 17:04:28 +02:00
2021-06-21 08:49:11 +02:00
2022-06-02 15:27:44 -07:00
2021-06-21 08:48:57 +02:00
2019-06-05 17:36:38 +02:00
2019-06-19 17:09:55 +02:00
2019-07-08 15:13:08 +02:00
2021-06-21 08:49:03 +02:00
2020-08-05 18:42:53 +02:00
2021-05-17 18:56:23 -05:00
2022-06-02 15:27:44 -07:00
2021-08-22 10:28:11 +02:00
2022-07-23 14:21:23 +02:00
2021-06-22 12:40:31 +02:00
2019-07-08 15:13:09 +02:00
2019-07-08 15:13:10 +02:00
2019-11-03 19:54:53 +01:00
2021-12-28 13:59:06 +01:00
2021-06-21 08:49:05 +02:00
2019-10-23 17:23:46 +02:00
2021-10-26 21:31:10 +02:00
2019-05-05 21:02:24 +02:00
2021-08-22 10:28:10 +02:00
2022-01-05 10:38:51 +01:00
2019-06-19 17:09:55 +02:00
2022-05-08 10:33:59 +02:00
2021-06-21 08:48:58 +02:00
2019-07-08 15:13:10 +02:00
2019-07-08 15:13:11 +02:00
2021-04-09 14:11:24 +09:30
2020-08-05 18:43:01 +02:00
2020-08-05 18:43:01 +02:00
2021-07-07 12:57:46 -07:00
2021-06-21 08:49:08 +02:00
2021-10-26 20:22:51 +02:00
2019-07-08 20:35:11 +02:00
2022-03-27 17:04:28 +02:00
2021-06-21 08:49:09 +02:00
2020-08-05 18:42:53 +02:00
2020-10-14 15:02:22 +02:00
2021-01-26 07:42:27 +01:00
2019-07-08 15:13:12 +02:00
2019-07-08 15:13:12 +02:00
2019-10-23 17:23:46 +02:00
2020-03-18 11:10:09 +01:00
2019-09-16 22:10:05 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-06-21 08:49:12 +02:00
2019-07-08 15:13:14 +02:00
2020-08-05 18:42:53 +02:00
2020-10-14 15:02:21 +02:00
2022-07-23 14:21:24 +02:00
2022-03-27 17:04:09 +02:00
2021-03-23 15:22:40 +01:00
2021-03-17 13:16:18 -07:00
2019-12-30 15:58:29 +01:00
2019-06-19 17:09:55 +02:00
2019-05-05 21:10:34 +02:00
2022-05-21 10:09:28 +02:00
2021-10-26 21:31:10 +02:00
2022-05-08 10:34:04 +02:00
2022-05-21 10:09:31 +02:00
2022-01-05 10:38:37 +01:00
2022-04-19 21:33:57 +02:00
2021-06-21 08:49:16 +02:00
2020-08-05 18:42:53 +02:00
2021-06-21 08:48:59 +02:00
2020-08-05 18:42:53 +02:00
2019-07-08 20:35:11 +02:00
2019-10-23 17:23:46 +02:00
2020-12-13 16:17:41 +01:00
2021-10-26 20:22:51 +02:00
2021-06-21 08:49:02 +02:00
2020-08-23 17:36:59 -05:00
2020-08-05 18:42:53 +02:00
2020-08-05 18:42:54 +02:00
2019-05-30 11:26:32 -07:00
2021-12-23 18:09:28 +01:00
2021-08-22 10:28:09 +02:00
2020-08-05 18:42:53 +02:00
2020-08-05 18:43:02 +02:00
2022-07-23 14:21:24 +02:00
2022-07-23 14:21:23 +02:00
2022-03-27 17:04:33 +02:00
2020-12-13 16:17:39 +01:00
2019-07-08 15:13:16 +02:00
2021-10-26 21:31:02 +02:00
2019-07-08 15:13:17 +02:00
2019-05-05 21:02:29 +02:00
2019-05-30 11:26:32 -07:00
2022-05-08 10:34:05 +02:00
2021-10-26 21:31:08 +02:00
2019-07-08 15:13:17 +02:00
2021-08-22 10:28:10 +02:00
2019-05-05 21:02:32 +02:00
2022-05-21 10:09:31 +02:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-05-05 21:02:32 +02:00
2019-05-30 11:29:22 -07:00
2020-10-14 15:22:58 +02:00
2019-12-30 15:58:23 +01:00
2021-06-21 08:49:03 +02:00
2020-08-05 18:42:53 +02:00
2020-08-05 18:42:53 +02:00
2021-08-22 10:28:08 +02:00
2021-06-21 08:49:13 +02:00
2022-03-27 17:04:08 +02:00
2021-06-21 08:49:13 +02:00
2021-06-21 08:49:13 +02:00
2019-07-08 20:35:11 +02:00
2022-05-21 10:09:30 +02:00
2020-08-23 17:36:59 -05:00
2020-08-05 18:42:53 +02:00
2020-08-05 18:42:53 +02:00
2021-06-21 08:49:09 +02:00
2021-06-21 08:49:09 +02:00
2020-03-18 11:15:24 +01:00
2019-07-08 15:13:18 +02:00
2021-06-21 08:49:15 +02:00