summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/cyapa_gen3.c
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2017-01-15 15:19:27 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-15 15:40:23 -0800
commit13e360ac97e2a6386f9e26e02e20bce4b6e83415 (patch)
treecb45762a07dc2d54eb7ab8a50a5c641945d84e12 /drivers/input/mouse/cyapa_gen3.c
parentcd4c1b412d4dd094c2ec02be4f0ee41bcc386170 (diff)
Input: cyapa - use msleep() for long delay
ulseep_range() uses hrtimers and provides no advantage over msleep() for larger delays. Fix up the 50ms delays here to use msleep() and reduce the load on the hrtimer subsystem. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/cyapa_gen3.c')
-rw-r--r--drivers/input/mouse/cyapa_gen3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/cyapa_gen3.c b/drivers/input/mouse/cyapa_gen3.c
index a47b06f4ed51..1cbfa4a6e830 100644
--- a/drivers/input/mouse/cyapa_gen3.c
+++ b/drivers/input/mouse/cyapa_gen3.c
@@ -562,7 +562,7 @@ static int cyapa_gen3_bl_exit(struct cyapa *cyapa)
* Wait for bootloader to exit, and operation mode to start.
* Normally, this takes at least 50 ms.
*/
- usleep_range(50000, 100000);
+ msleep(50);
/*
* In addition, when a device boots for the first time after being
* updated to new firmware, it must first calibrate its sensors, which