]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (9747): em28xx: Properly handles XCLK and I2C speed
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 25 Nov 2008 10:05:06 +0000 (07:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:41 +0000 (17:53 -0200)
commit54301ed470398ec0d6df4cdea3a97ace9cf9b782
tree1ceaae36fa9a2c937acf835c8f50ebf3dd402de8
parentcf118fda10b724be39651fd962d2cb5d93c82eac
V4L/DVB (9747): em28xx: Properly handles XCLK and I2C speed

The previous patches removed XCLK and I2C magic. Now, we finally know
what those registers do. Also, only a very few cards need different
setups for those.

Instead of keeping the setups for those values inside the per-device
hack magic switch, move the uncommon values to the board-specific
struct, and have a common setup for all other boards.

So, almost 100 lines of hacking magic were removed.

A co-lateral effect of this patch is that it also fixes a bug at em28xx-core, where xclk
were set, without taking any care about not overriding a previous xclk setup.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx.h