summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-07-16 02:43:04 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-20 21:28:18 +0200
commitb9af29e15a7cf9d5e26deee0267857d1e0dc78d5 (patch)
tree7ebbd19bf60166d883fe1a0d6dd48daa11491f29
parentmedia: dvb_ca_en50221: New function dvb_ca_en50221_poll_cam_gone (diff)
downloadlinux-b9af29e15a7cf9d5e26deee0267857d1e0dc78d5.tar.xz
linux-b9af29e15a7cf9d5e26deee0267857d1e0dc78d5.zip
media: dvb_ca_en50221: use usleep_range
Fixed all: WARNING: msleep < 20ms can sleep for up to 20ms by using usleep_range. Signed-off-by: Jasmin Jessich <jasmin@anw.at> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/dvb-core/dvb_ca_en50221.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb-core/dvb_ca_en50221.c
index bb6aa0f86c07..725fdd0c2071 100644
--- a/drivers/media/dvb-core/dvb_ca_en50221.c
+++ b/drivers/media/dvb-core/dvb_ca_en50221.c
@@ -313,7 +313,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
}
/* wait for a bit */
- msleep(1);
+ usleep_range(1000, 1100);
}
dprintk("%s failed timeout:%lu\n", __func__, jiffies - start);
@@ -1489,7 +1489,7 @@ static ssize_t dvb_ca_en50221_io_write(struct file *file,
if (status != -EAGAIN)
goto exit;
- msleep(1);
+ usleep_range(1000, 1100);
}
if (!written) {
status = -EIO;