aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/fc0011.c
diff options
context:
space:
mode:
authorMichael Büsch <m@bues.ch>2012-04-03 04:08:45 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-09 13:53:47 -0400
commitc421d5c9d439857434916b1bc420623fe9519285 (patch)
treec77fc7fae3cb666db2a61eb9efb422382c4fcab4 /drivers/media/common/tuners/fc0011.c
parentad30e91befd7153827a97faa8281dcd48aa6702d (diff)
[media] fc0011: use usleep_range()
Use usleep_range() instead of msleep() to improve power saving opportunities. Signed-off-by: Michael Buesch <m@bues.ch> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/fc0011.c')
-rw-r--r--drivers/media/common/tuners/fc0011.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/common/tuners/fc0011.c b/drivers/media/common/tuners/fc0011.c
index 7842a4eee3d7..d43a5a29ed29 100644
--- a/drivers/media/common/tuners/fc0011.c
+++ b/drivers/media/common/tuners/fc0011.c
@@ -167,7 +167,7 @@ static int fc0011_vcocal_read(struct fc0011_priv *priv, u8 *value)
167 err = fc0011_writereg(priv, FC11_REG_VCOCAL, FC11_VCOCAL_RUN); 167 err = fc0011_writereg(priv, FC11_REG_VCOCAL, FC11_VCOCAL_RUN);
168 if (err) 168 if (err)
169 return err; 169 return err;
170 msleep(10); 170 usleep_range(10000, 20000);
171 err = fc0011_readreg(priv, FC11_REG_VCOCAL, value); 171 err = fc0011_readreg(priv, FC11_REG_VCOCAL, value);
172 if (err) 172 if (err)
173 return err; 173 return err;
@@ -423,7 +423,7 @@ static int fc0011_set_params(struct dvb_frontend *fe)
423 err = fc0011_vcocal_read(priv, NULL); 423 err = fc0011_vcocal_read(priv, NULL);
424 if (err) 424 if (err)
425 return err; 425 return err;
426 msleep(10); 426 usleep_range(10000, 50000);
427 427
428 err = fc0011_readreg(priv, FC11_REG_RCCAL, &regs[FC11_REG_RCCAL]); 428 err = fc0011_readreg(priv, FC11_REG_RCCAL, &regs[FC11_REG_RCCAL]);
429 if (err) 429 if (err)