upstream: [media] em28xx: convert i2c wait completion logic to use jiffies
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 4 Jan 2014 08:42:11 +0000 (05:42 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:26 +0000 (11:54 +0900)
commit09e4a3bbdac45a97f7f496a8f6b436bd8e82d6cf
tree763b6a110e8420015a92b108afc847833ef8faf4
parentd0d5932e1e329a548188df8d82cdd3f081b55d9d
upstream: [media] em28xx: convert i2c wait completion logic to use jiffies

The I2C wait completion/timeout logic currently assumes that
msleep(5) will wait exaclty 5 ms. This is not true at all,
as it depends on CONFIG_HZ.

Convert it to use jiffies, in order to not wait for more time
than needed.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-i2c.c