static int mv_pm_enter(suspend_state_t state) { int ret = 0; switch (state) { case PM_SUSPEND_STANDBY: mv_enter_standby(); break; default: ret = -EINVAL; } return ret; }
static int mv_pm_valid_standby(suspend_state_t state) { int ret = 0; switch (state) { /* it is not real suspend to DRAM, since we completly shutdown */ case PM_SUSPEND_MEM: mv_enter_standby(); break; default: ret = -EINVAL; } return ret; }