Commit c421d5c9 authored by Michael Büsch's avatar Michael Büsch Committed by Mauro Carvalho Chehab

[media] fc0011: use usleep_range()

Use usleep_range() instead of msleep() to improve power saving opportunities.
Signed-off-by: default avatarMichael Buesch <m@bues.ch>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ad30e91b
...@@ -167,7 +167,7 @@ static int fc0011_vcocal_read(struct fc0011_priv *priv, u8 *value) ...@@ -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); err = fc0011_writereg(priv, FC11_REG_VCOCAL, FC11_VCOCAL_RUN);
if (err) if (err)
return err; return err;
msleep(10); usleep_range(10000, 20000);
err = fc0011_readreg(priv, FC11_REG_VCOCAL, value); err = fc0011_readreg(priv, FC11_REG_VCOCAL, value);
if (err) if (err)
return err; return err;
...@@ -423,7 +423,7 @@ static int fc0011_set_params(struct dvb_frontend *fe) ...@@ -423,7 +423,7 @@ static int fc0011_set_params(struct dvb_frontend *fe)
err = fc0011_vcocal_read(priv, NULL); err = fc0011_vcocal_read(priv, NULL);
if (err) if (err)
return err; return err;
msleep(10); usleep_range(10000, 50000);
err = fc0011_readreg(priv, FC11_REG_RCCAL, &regs[FC11_REG_RCCAL]); err = fc0011_readreg(priv, FC11_REG_RCCAL, &regs[FC11_REG_RCCAL]);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment