summaryrefslogtreecommitdiff
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2011-09-13 14:51:23 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-21 13:09:10 (GMT)
commitd102b739f3a352425fcdb39afbf898f8bdbd2bc3 (patch)
treef314c49f9c535d5a0e8c756a1a34ae437afd2243 /drivers/media/dvb
parent75d404ec041ef0e036e3100f730391f6e0818019 (diff)
downloadlinux-d102b739f3a352425fcdb39afbf898f8bdbd2bc3.tar.xz
[media] tda10071: change sleeps to more suitable ones
msleep() => usleep_range() Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/tda10071.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/tda10071.c b/drivers/media/dvb/frontends/tda10071.c
index 352ddc6..0c37434 100644
--- a/drivers/media/dvb/frontends/tda10071.c
+++ b/drivers/media/dvb/frontends/tda10071.c
@@ -167,7 +167,7 @@ static int tda10071_cmd_execute(struct tda10071_priv *priv,
if (ret)
goto error;
- msleep(1);
+ usleep_range(200, 5000);
}
dbg("%s: loop=%d", __func__, i);
@@ -298,7 +298,7 @@ static int tda10071_diseqc_send_master_cmd(struct dvb_frontend *fe,
if (ret)
goto error;
- msleep(10);
+ usleep_range(10000, 20000);
}
dbg("%s: loop=%d", __func__, i);
@@ -352,7 +352,7 @@ static int tda10071_diseqc_recv_slave_reply(struct dvb_frontend *fe,
if (ret)
goto error;
- msleep(10);
+ usleep_range(10000, 20000);
}
dbg("%s: loop=%d", __func__, i);
@@ -423,7 +423,7 @@ static int tda10071_diseqc_send_burst(struct dvb_frontend *fe,
if (ret)
goto error;
- msleep(10);
+ usleep_range(10000, 20000);
}
dbg("%s: loop=%d", __func__, i);