projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e4e6cf
)
input:ir, resume -> resume_early for wakeup one time
author
huang zhibao
<hzb@rock-chips.com>
Mon, 13 Oct 2014 09:59:27 +0000
(17:59 +0800)
committer
huang zhibao
<hzb@rock-chips.com>
Mon, 13 Oct 2014 09:59:27 +0000
(17:59 +0800)
drivers/input/remotectl/rockchip_pwm_remotectl.c
patch
|
blob
|
history
diff --git
a/drivers/input/remotectl/rockchip_pwm_remotectl.c
b/drivers/input/remotectl/rockchip_pwm_remotectl.c
index 614c6e522a4fa8159779c5ca8fb7d1c4b76a1e9b..871de6584f48cb30c8c9cdba5ef8e93d70741e49 100755
(executable)
--- a/
drivers/input/remotectl/rockchip_pwm_remotectl.c
+++ b/
drivers/input/remotectl/rockchip_pwm_remotectl.c
@@
-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