media: em28xx: improve the logic with sets Xclk and I2C speed
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 1 Mar 2018 14:59:28 +0000 (09:59 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 09:41:58 +0000 (04:41 -0500)
commit6cda90b63edd1d2b1446793e0fcb8b4a725f8ac5
tree1792d5764dfe848861c2e444fab6ee7f5eeba54b
parentd571b592c6206d33731f41aa710fa0f69ac8611b
media: em28xx: improve the logic with sets Xclk and I2C speed

The logic there should be called on two places. Also,
ideally, it should not be modifying the device struct.

So, change the logic accordingly.

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