static void set_sleep_mode(struct panel_drv_data *ddata, int on) { int cmd; if (on) cmd = MIPID_CMD_SLEEP_IN; else cmd = MIPID_CMD_SLEEP_OUT; /* * We have to keep 120msec between sleep in/out commands. * (8.2.15, 8.2.16). */ hw_guard_wait(ddata); acx565akm_cmd(ddata, cmd); hw_guard_start(ddata, 120); }
static void set_sleep_mode(struct acx565akm_device *md, int on) { int cmd; if (on) cmd = MIPID_CMD_SLEEP_IN; else cmd = MIPID_CMD_SLEEP_OUT; /* * We have to keep 120msec between sleep in/out commands. * (8.2.15, 8.2.16). */ hw_guard_wait(md); acx565akm_cmd(md, cmd); hw_guard_start(md, 120); }
static void set_sleep_mode(struct acx565akm_device *md, int on) { int cmd; if (on) cmd = MIPID_CMD_SLEEP_IN; else cmd = MIPID_CMD_SLEEP_OUT; /* */ hw_guard_wait(md); acx565akm_cmd(md, cmd); hw_guard_start(md, 120); }
static void set_sleep_mode(struct nevada_device *md, int on) { int cmd, sleep_time; if (on) cmd = MIPID_CMD_SLEEP_IN; else cmd = MIPID_CMD_SLEEP_OUT; hw_guard_wait(md); nevada_cmd(md, cmd); hw_guard_start(md, 120); /* * When disabling the * panel we'll sleep for the duration of 2 frames, so that the * controller can still provide the PCLK,HS,VS signals. */ if (on) sleep_time = 50; else sleep_time = 5; msleep(sleep_time); }