“a5458aa923be8960a78d6fdfa1c6ff769b34deb2”上不存在“...nfp/git@gitcode.net:openharmony/kernel_linux.git”
提交 d102b739 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[media] tda10071: change sleeps to more suitable ones

msleep() => usleep_range()
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 75d404ec
...@@ -167,7 +167,7 @@ static int tda10071_cmd_execute(struct tda10071_priv *priv, ...@@ -167,7 +167,7 @@ static int tda10071_cmd_execute(struct tda10071_priv *priv,
if (ret) if (ret)
goto error; goto error;
msleep(1); usleep_range(200, 5000);
} }
dbg("%s: loop=%d", __func__, i); dbg("%s: loop=%d", __func__, i);
...@@ -298,7 +298,7 @@ static int tda10071_diseqc_send_master_cmd(struct dvb_frontend *fe, ...@@ -298,7 +298,7 @@ static int tda10071_diseqc_send_master_cmd(struct dvb_frontend *fe,
if (ret) if (ret)
goto error; goto error;
msleep(10); usleep_range(10000, 20000);
} }
dbg("%s: loop=%d", __func__, i); dbg("%s: loop=%d", __func__, i);
...@@ -352,7 +352,7 @@ static int tda10071_diseqc_recv_slave_reply(struct dvb_frontend *fe, ...@@ -352,7 +352,7 @@ static int tda10071_diseqc_recv_slave_reply(struct dvb_frontend *fe,
if (ret) if (ret)
goto error; goto error;
msleep(10); usleep_range(10000, 20000);
} }
dbg("%s: loop=%d", __func__, i); dbg("%s: loop=%d", __func__, i);
...@@ -423,7 +423,7 @@ static int tda10071_diseqc_send_burst(struct dvb_frontend *fe, ...@@ -423,7 +423,7 @@ static int tda10071_diseqc_send_burst(struct dvb_frontend *fe,
if (ret) if (ret)
goto error; goto error;
msleep(10); usleep_range(10000, 20000);
} }
dbg("%s: loop=%d", __func__, i); dbg("%s: loop=%d", __func__, i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册