lkml.org 
[lkml]   [2017]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay
Date
Fix checkpatch issue: CHECK: usleep_range is preferred over udelay;

Signed-off-by: Jaya Durga <rjdurga@gmail.com>
---
drivers/staging/speakup/speakup_keypc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/speakup/speakup_keypc.c b/drivers/staging/speakup/speakup_keypc.c
index d3203f8..1ba4cfc 100644
--- a/drivers/staging/speakup/speakup_keypc.c
+++ b/drivers/staging/speakup/speakup_keypc.c
@@ -28,7 +28,7 @@

#define DRV_VERSION "2.10"
#define SYNTH_IO_EXTENT 0x04
-#define SWAIT udelay(70)
+#define SWAIT usleep_range(70, 150)
#define PROCSPEECH 0x1f
#define SYNTH_CLEAR 0x03

@@ -164,7 +164,7 @@ static const char *synth_immediate(struct spk_synth *synth, const char *buf)
if (--timeout <= 0)
return oops();
outb_p(ch, synth_port);
- udelay(70);
+ usleep_range(70, 150);
buf++;
}
return NULL;
--
1.9.1
\
 
 \ /
  Last update: 2017-07-12 13:29    [W:0.028 / U:1.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site