diff options
author | Michael Büsch <m@bues.ch> | 2012-04-03 05:08:45 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-04-09 14:53:47 -0300 |
commit | c421d5c9d439857434916b1bc420623fe9519285 (patch) | |
tree | c77fc7fae3cb666db2a61eb9efb422382c4fcab4 /drivers/media/common | |
parent | ad30e91befd7153827a97faa8281dcd48aa6702d (diff) | |
download | linux-c421d5c9d439857434916b1bc420623fe9519285.tar.bz2 |
[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')
-rw-r--r-- | drivers/media/common/tuners/fc0011.c | 4 |
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) 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; @@ -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, ®s[FC11_REG_RCCAL]); if (err) |