Skip to content

Commit

Permalink
[media] fc0011: use usleep_range()
Browse files Browse the repository at this point in the history
Use usleep_range() instead of msleep() to improve power saving opportunities.

Signed-off-by: Michael Buesch <[email protected]>
Signed-off-by: Antti Palosaari <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mbuesch authored and Mauro Carvalho Chehab committed Apr 9, 2012
1 parent ad30e91 commit c421d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/common/tuners/fc0011.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static int fc0011_vcocal_read(struct fc0011_priv *priv, u8 *value)
err = fc0011_writereg(priv, FC11_REG_VCOCAL, FC11_VCOCAL_RUN);
if (err)
return err;
msleep(10);
usleep_range(10000, 20000);
err = fc0011_readreg(priv, FC11_REG_VCOCAL, value);
if (err)
return err;
Expand Down Expand Up @@ -423,7 +423,7 @@ static int fc0011_set_params(struct dvb_frontend *fe)
err = fc0011_vcocal_read(priv, NULL);
if (err)
return err;
msleep(10);
usleep_range(10000, 50000);

err = fc0011_readreg(priv, FC11_REG_RCCAL, &regs[FC11_REG_RCCAL]);
if (err)
Expand Down

0 comments on commit c421d5c

Please sign in to comment.