public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Mohan Kumar <mohankumar718@gmail.com>
Cc: linus.walleij@linaro.org, knaack.h@gmx.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers/iio/gyro/mpu3050-core.c: This patch fix the following checkpatch warning.
Date: Sun, 14 Apr 2019 15:15:06 +0100	[thread overview]
Message-ID: <20190414151506.6d8c671d@archlinux> (raw)
In-Reply-To: <1555063763-2328-1-git-send-email-mohankumar718@gmail.com>

On Fri, 12 Apr 2019 13:09:23 +0300
Mohan Kumar <mohankumar718@gmail.com> wrote:

> As per Documentation/timers/timers-howto.txt Msleep < 20ms can sleep for
> up to 20ms. so use usleep_range.
> 
> Signed-off-by: Mohan Kumar <mohankumar718@gmail.com>

Please resend, ccing the linux-iio@vger.kernel.org mailing list.

Thanks,

Jonathan
> ---
>  drivers/iio/gyro/mpu3050-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/gyro/mpu3050-core.c b/drivers/iio/gyro/mpu3050-core.c
> index 85b7ac4..0a40616 100644
> --- a/drivers/iio/gyro/mpu3050-core.c
> +++ b/drivers/iio/gyro/mpu3050-core.c
> @@ -865,7 +865,7 @@ static int mpu3050_power_up(struct mpu3050 *mpu3050)
>  		dev_err(mpu3050->dev, "error setting power mode\n");
>  		return ret;
>  	}
> -	msleep(10);
> +	usleep_range(10000, 20000);
>  
>  	return 0;
>  }


      reply	other threads:[~2019-04-14 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-12 10:09 [PATCH] drivers/iio/gyro/mpu3050-core.c: This patch fix the following checkpatch warning Mohan Kumar
2019-04-14 14:15 ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190414151506.6d8c671d@archlinux \
    --to=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mohankumar718@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox