Skip to content

Commit

Permalink
[media] tda10071: change sleeps to more suitable ones
Browse files Browse the repository at this point in the history
msleep() => usleep_range()

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Sep 21, 2011
1 parent 75d404e commit d102b73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/dvb/frontends/tda10071.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d102b73

Please sign in to comment.