Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753183AbdGSMbK (ORCPT ); Wed, 19 Jul 2017 08:31:10 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33303 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751967AbdGSMbI (ORCPT ); Wed, 19 Jul 2017 08:31:08 -0400 From: Jaya Durga To: gregkh@linuxfoundation.org Cc: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Jaya Durga Subject: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay Date: Wed, 19 Jul 2017 17:55:55 +0530 Message-Id: <1500467157-14739-1-git-send-email-rjdurga@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 31 Fix checkpatch issue: CHECK: usleep_range is preferred over udelay; Signed-off-by: Jaya Durga --- 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