From: Antti Palosaari Date: Tue, 13 Sep 2011 14:51:23 +0000 (-0300) Subject: [media] tda10071: change sleeps to more suitable ones X-Git-Tag: MMI-PSA29.97-13-9~18177^2~141 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d102b739f3a352425fcdb39afbf898f8bdbd2bc3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] tda10071: change sleeps to more suitable ones msleep() => usleep_range() Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/tda10071.c b/drivers/media/dvb/frontends/tda10071.c index 352ddc656ad6..0c37434d19e2 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);