projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c421d5c
)
[media] af9035: Use usleep_range() in fc0011 support code
author
Michael Büsch
<m@bues.ch>
Tue, 3 Apr 2012 08:11:30 +0000
(
05:11
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 9 Apr 2012 17:53:59 +0000
(14:53 -0300)
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>
drivers/media/dvb/dvb-usb/af9035.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-usb/af9035.c
b/drivers/media/dvb/dvb-usb/af9035.c
index
58fe69d
..
7bb8817
100644
(file)
--- 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(1
0);
+
usleep_range(10000, 5000
0);
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(1
0);
+
usleep_range(10000, 2000
0);
err = af9035_wr_reg(d, 0xd8e7, 0);
if (err)
return err;
-
msleep(1
0);
+
usleep_range(10000, 2000
0);
break;
default:
return -EINVAL;