]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: media: cxd2009: use usleep_range()
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Wed, 8 Oct 2014 05:47:28 +0000 (11:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:16 +0000 (10:29 +0800)
This patch fixes checkpatch.pl warning in file cxd2099.c
WARNING : msleep < 20ms can sleep for up to 20ms; see
Documentation/timers/timers-howto.txt

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/cxd2099/cxd2099.c

index 73e7b2c9e4a72bd1a6f4a2a870a468e6025859cc..657ea480c6e7bed0944ea1502939860aaed589a6 100644 (file)
@@ -527,7 +527,7 @@ static int slot_reset(struct dvb_ca_en50221 *ca, int slot)
                u8 val;
 #endif
                for (i = 0; i < 100; i++) {
-                       msleep(10);
+                       usleep_range(10000, 11000);
 #if 0
                        read_reg(ci, 0x06, &val);
                        dev_info(&ci->i2c->dev, "%d:%02x\n", i, val);