staging: dgnc: replaced udelay with usleep_range in dgnc_cls.c
PATCH 1/1 staging: dgnc: replaced udelay with usleep_range in dgnc_cls.c
This patch replaces udelay with usleep_range fixing a checkpatch.pl issue:
CHECK: usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt
+ udelay(10);
--- drivers/staging/dgnc/dgnc_cls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dgnc/dgnc_cls.c +1 -1
@@ -956,7 +956,7 @@ static void cls_flush_uart_read(struct channel_t *ch)* Presumably, this is a bug in this UART. */ -udelay (10 ); +usleep_range (10000 ,11000 ); }static void cls_copy_data_from_queue_to_uart (struct channel_t *ch)
Signature · 1 line
2.7.2
Greg KH
maintainerQuoted 15 lines · Juliana Rodrigues
This patch replaces udelay with
usleep_rangefixing a checkpatch.pl issue:CHECK:
usleep_rangeis preferred over udelay; seeDocumentation/timers/timers-howto.txt
+ udelay(10);Signed-off-by Juliana Rodrigues <[email protected]>--- drivers/staging/dgnc/dgnc_cls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/dgnc/dgnc_cls.c +0
-0
drivers/staging/dgnc/dgnc_cls.c static void cls_flush_uart_read(struct channel_t *ch) · line 959
Quoted 5 lines
drivers/staging/dgnc/dgnc_cls.c +1
-1@@ -956,7 +956,7 @@ static void cls_flush_uart_read(struct channel_t *ch)* Presumably, this is a bug in this UART. */ -udelay (10 ); +usleep_range (10000 ,11000 );
How do you know this range is ok?
Em Sáb, 2016-03-12 às 18:57 -0800, Greg KH escreveu:
Quoted 14 lines · Juliana Rodrigues
Quoted 13 lines
This patch replaces udelay with
usleep_rangefixing a checkpatch.pl issue:CHECK:
usleep_rangeis preferred over udelay; seeDocumentation/timers/timers-howto.txt
+ udelay(10);Signed-off-by Juliana Rodrigues <[email protected]>---
drivers/staging/dgnc/dgnc_cls.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
drivers/staging/dgnc/dgnc_cls.c static void cls_flush_uart_read(struct channel_t *ch) · line 959
Quoted 12 lines
drivers/staging/dgnc/dgnc_cls.c +0
-0@@ -956,7 +956,7 @@ static void cls_flush_uart_read(structchannel_t *ch) * Presumably, this is a bug in this UART. */ drivers/staging/dgnc/dgnc_cls.c +1
-1-udelay (10 ); +usleep_range (10000 ,11000 );How do you know this range is ok?
Probably it isnt. I thought that usleep_range were in microseconds while udelay in miliseconds. I'll make a patch to fix this.
Thanks, Greg. :)