mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
[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>
This commit is contained in:
parent
75d404ec04
commit
d102b739f3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user