media: dvb-usb-v2/gl861: use usleep_range() for short delay
authorAkihiro Tsukada <tskd08@gmail.com>
Sun, 8 Apr 2018 17:21:37 +0000 (13:21 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 11:15:09 +0000 (07:15 -0400)
commit87360e68b33f12c9e5b08636a3e349f851eba706
treef233e924d5e39c5d5c91606b4ca4351c4230baaf
parent17459727ba52f2566c19b9621b9205a0910ec161
media: dvb-usb-v2/gl861: use usleep_range() for short delay

As the kernel doc "timers-howto.txt" reads,
short delay with msleep() can take much longer.
In a case of raspbery-pi platform where CONFIG_HZ_100 was set,
it actually affected the init of Friio devices
since it issues lots of i2c transactions with short delay.

Signed-off-by: Akihiro Tsukada <tskd08@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb-v2/gl861.c