soc: exynos-powermode: add macro for syspwr mode searching
authorSoohyun Kim <soohyuni.kim@samsung.com>
Wed, 14 Mar 2018 03:01:49 +0000 (12:01 +0900)
committerChungwoo Park <cww.park@samsung.com>
Wed, 23 May 2018 10:52:36 +0000 (19:52 +0900)
Change-Id: Iab5e97a8745fe7a26acdfb02eff0e2895408edc7
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
drivers/soc/samsung/exynos-powermode.c

index 075b764dec721202a4ec4a07221ad948683e5a9c..a919b5f9aed2ac0affacb1fb8c56d22c2a038a9b 100644 (file)
@@ -90,6 +90,10 @@ void exynos_wakeup_sys_powerdown(enum sys_powerdown mode, bool early_wakeup)
 /******************************************************************************
  *                            Driver initialization                           *
  ******************************************************************************/
+
+#define for_each_syspwr_mode(mode)                              \
+       for ((mode) = 0; (mode) < NUM_SYS_POWERDOWN; (mode)++)
+
 static int alloc_wakeup_mask(int num_wakeup_mask)
 {
        unsigned int mode;