summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorMichael Büsch <m@bues.ch>2012-04-03 05:11:30 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-09 14:53:59 -0300
commitde2bec5e54307223c8973dff75162416abde80a9 (patch)
treec4ee2de1bf41b475a93d52ab21276dd72805a25d /drivers/media/dvb/dvb-usb
parentc421d5c9d439857434916b1bc420623fe9519285 (diff)
[media] af9035: Use usleep_range() in fc0011 support code
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/dvb/dvb-usb')
-rw-r--r--drivers/media/dvb/dvb-usb/af9035.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9035.c b/drivers/media/dvb/dvb-usb/af9035.c
index 58fe69deda1..7bb8817864a 100644
--- a/drivers/media/dvb/dvb-usb/af9035.c
+++ b/drivers/media/dvb/dvb-usb/af9035.c
@@ -590,7 +590,7 @@ static int af9035_fc0011_tuner_callback(struct dvb_usb_device *d,
err = af9035_wr_reg_mask(d, 0xd8d1, 1, 1);
if (err)
return err;
- msleep(10);
+ usleep_range(10000, 50000);
break;
case FC0011_FE_CALLBACK_RESET:
err = af9035_wr_reg(d, 0xd8e9, 1);
@@ -602,11 +602,11 @@ static int af9035_fc0011_tuner_callback(struct dvb_usb_device *d,
err = af9035_wr_reg(d, 0xd8e7, 1);
if (err)
return err;
- msleep(10);
+ usleep_range(10000, 20000);
err = af9035_wr_reg(d, 0xd8e7, 0);
if (err)
return err;
- msleep(10);
+ usleep_range(10000, 20000);
break;
default:
return -EINVAL;