[PATCH] fc0011: use usleep_range()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use usleep_range() instead of msleep() to improve power saving opportunities.

Signed-off-by: Michael Buesch <m@xxxxxxx>

---

Index: linux/drivers/media/common/tuners/fc0011.c
===================================================================
--- linux.orig/drivers/media/common/tuners/fc0011.c	2012-04-03 10:44:07.243418827 +0200
+++ linux/drivers/media/common/tuners/fc0011.c	2012-04-03 10:46:29.342851336 +0200
@@ -167,7 +167,7 @@
 	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 @@
 	err = fc0011_vcocal_read(priv, NULL);
 	if (err)
 		return err;
-	msleep(10);
+	usleep_range(10000, 50000);
 
 	err = fc0011_readreg(priv, FC11_REG_RCCAL, &regs[FC11_REG_RCCAL]);
 	if (err)


-- 
Greetings, Michael.

PGP encryption is encouraged / 908D8B0E

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux