[2/2,OPW,kernel] staging: media: cxd2099: use usleep_range()
diff mbox

Message ID 7c4aad317c175ff82ab9e5cfa28899169889c442.1411266245.git.tapaswenipathak@gmail.com
State New, archived
Headers show

Commit Message

Tapasweni Pathak Sept. 21, 2014, 2:37 a.m. UTC
This patch fixes checkpatch.pl warning in file cxd2099.c
WARNING : msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
---
 drivers/staging/media/cxd2099/cxd2099.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

--
1.7.0.4

Comments

Greg Kroah-Hartman Sept. 23, 2014, 6:05 p.m. UTC | #1
On Sun, Sep 21, 2014 at 08:07:11AM +0530, Tapasweni Pathak wrote:
> This patch fixes checkpatch.pl warning in file cxd2099.c
> WARNING : msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
> 
> Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
> ---
>  drivers/staging/media/cxd2099/cxd2099.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c
> index 73e7b2c..b8ee8d2 100644
> --- a/drivers/staging/media/cxd2099/cxd2099.c
> +++ b/drivers/staging/media/cxd2099/cxd2099.c
> @@ -527,7 +527,7 @@ static int slot_reset(struct dvb_ca_en50221 *ca, int slot)
>  		u8 val;
>  #endif
>  		for (i = 0; i < 100; i++) {
> -			msleep(10);
> +				usleep_range(10000, 11000)

Why did you increase the indentation here?

Please don't do that.

thanks,

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c
index 73e7b2c..b8ee8d2 100644
--- a/drivers/staging/media/cxd2099/cxd2099.c
+++ b/drivers/staging/media/cxd2099/cxd2099.c
@@ -527,7 +527,7 @@  static int slot_reset(struct dvb_ca_en50221 *ca, int slot)
 		u8 val;
 #endif
 		for (i = 0; i < 100; i++) {
-			msleep(10);
+				usleep_range(10000, 11000)
 #if 0
 			read_reg(ci, 0x06, &val);
 			dev_info(&ci->i2c->dev, "%d:%02x\n", i, val);