Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753374AbdGSMqD (ORCPT ); Wed, 19 Jul 2017 08:46:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57948 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbdGSMqB (ORCPT ); Wed, 19 Jul 2017 08:46:01 -0400 Date: Wed, 19 Jul 2017 14:45:54 +0200 From: Greg KH To: Joe Perches Cc: Jaya Durga , 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 Subject: Re: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay Message-ID: <20170719124554.GA17490@kroah.com> References: <1500467157-14739-1-git-send-email-rjdurga@gmail.com> <1500467788.25934.37.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1500467788.25934.37.camel@perches.com> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 654 Lines: 20 On Wed, Jul 19, 2017 at 05:36:28AM -0700, Joe Perches wrote: > On Wed, 2017-07-19 at 17:55 +0530, Jaya Durga wrote: > > Fix checkpatch issue: CHECK: usleep_range is preferred over udelay; > [] > > diff --git 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) > > It'd probably be more sensible to remove this define as > SWAIT is used just once and use usleep_range directly. > I asked for that last time :( I guess I'll just reject this again...