static void sec_flip_work_func(struct work_struct *work) { struct sec_flip* flip = container_of( work, struct sec_flip, flip_id_det); //enable_irq(flip->irq); set_flip_status(flip); printk("%s: %s, before:%d \n", __func__, (flip_status) ? "OPEN 1" : "CLOSE 0", flip_status_before); sec_report_flip_key(flip); if (flip_status != flip_status_before) { #ifdef CONFIG_S5P_DSIM_SWITCHABLE_DUAL_LCD s3cfb_switch_dual_lcd(!flip_status); #endif samsung_switching_tsp(flip_status); samsung_switching_tkey(flip_status); } }
static void sec_flip_work_func(struct work_struct *work) { struct sec_flip* flip = container_of( work, struct sec_flip, flip_id_det); //enable_irq(flip->irq); set_flip_status(flip); sec_report_flip_key(flip); printk("[FLIP]%s: %s, before:%d \n", __func__, (flip_status) ? "OPEN 1" : "CLOSE 0", flip_status_before); if (flip_status != flip_status_before) { #if 0 //def CONFIG_S5P_DSIM_SWITCHABLE_DUAL_LCD s3cfb_switch_dual_lcd(!flip_status); #endif printk("[FLIP]:go to switch func, flip_status=%d\n",flip_status); samsung_switching_tsp(flip_status); //samsung_switching_tkey(flip_status); } //samsung_enable_tspInput(); /* do not accept tsp irq before folder open/close complete */ flip_status_before = flip_status; }