]> git.baikalelectronics.ru Git - kernel.git/commit
media: em28xx: adjust I2C timeout according with I2C speed
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 1 Mar 2018 17:54:06 +0000 (12:54 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 09:50:41 +0000 (04:50 -0500)
commitd65eb9c69158b611279874bf535c35ed7541c3da
tree33c4836505f94a9c3f1e309e6b6471497505773a
parentf12a00b824832326bd0a570e38737a2bfd7d3947
media: em28xx: adjust I2C timeout according with I2C speed

If the I2C speed is too slow, it should wait more for an
answer.

While here, change disconnected type from char to unsigned
int, just like all other bitmask fields there at em28xx
struct.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/em28xx/em28xx-i2c.c
drivers/media/usb/em28xx/em28xx.h