emulator macro is changed to is_emulator()
Change-Id: I1a225a22c4dd713233fb83f981402b2e8129b7cf
Signed-off-by: taeyoung <ty317.kim@samsung.com>
static bool is_valid(void)
{
-#ifdef EMULATOR
- _I("Support emulator haptic device");
- return true;
-#else
+ if (is_emulator()) {
+ _I("Support emulator haptic device");
+ return true;
+ }
+
_E("Do not support emulator haptic device");
return false;
-#endif
}
static const struct haptic_plugin_ops *load(void)
watchdog_notify();
-#ifndef EMULATOR
- unmount_rw_partition();
-#endif
+ if (!is_emulator())
+ unmount_rw_partition();
}
static void reboot_with_option(int cmd, char *option)