input:ir, resume -> resume_early for wakeup one time
authorhuang zhibao <hzb@rock-chips.com>
Mon, 13 Oct 2014 09:59:27 +0000 (17:59 +0800)
committerhuang zhibao <hzb@rock-chips.com>
Mon, 13 Oct 2014 09:59:27 +0000 (17:59 +0800)
drivers/input/remotectl/rockchip_pwm_remotectl.c

index 614c6e522a4fa8159779c5ca8fb7d1c4b76a1e9b..871de6584f48cb30c8c9cdba5ef8e93d70741e49 100755 (executable)
@@ -207,7 +207,12 @@ static void rk_pwm_remotectl_do_something(unsigned long  data)
                                ddata->scandata = 0;
                                ddata->count = 0;
                        } else {
-                               ddata->state = RMC_PRELOAD;
+                               if (rk_remote_print_code){
+                                       ddata->state = RMC_GETDATA;
+                                       ddata->scandata = 0;
+                                       ddata->count = 0;
+                               } else
+                                       ddata->state = RMC_PRELOAD;
                        }
                }
        }
@@ -564,8 +569,8 @@ static int remotectl_resume(struct device *dev)
 }
 
 static const struct dev_pm_ops remotectl_pm_ops = {
-       .suspend = remotectl_suspend,
-       .resume = remotectl_resume,
+       .suspend_late = remotectl_suspend,
+       .resume_early = remotectl_resume,
 };
 #endif