- case JBT_STATE_NORMAL:
- switch (new_state) {
- case JBT_STATE_NORMAL:
- rc = 0;
- break;
- case JBT_STATE_DEEP_STANDBY:
- /* first transition into sleep */
- rc = normal_to_sleep(jbt);
- /* then transition into deep standby */
- rc |= sleep_to_standby(jbt);
- break;
- case JBT_STATE_SLEEP:
- rc = normal_to_sleep(jbt);
- break;
- case JBT_STATE_QVGA_NORMAL:
- /* first transition into sleep */
- rc = normal_to_sleep(jbt);
- /* second transition into deep standby */
- rc |= sleep_to_standby(jbt);
- /* third transition into sleep */
- rc |= standby_to_sleep(jbt);
- /* fourth transition into normal */
- rc |= sleep_to_normal(jbt);
- break;
- }
- break;
- case JBT_STATE_QVGA_NORMAL:
- switch (new_state) {
- case JBT_STATE_QVGA_NORMAL: