V4L/DVB (13176): adv7180: Support checking standard via interrupts
authorRichard Röjfors <richard.rojfors@mocean-labs.com>
Tue, 22 Sep 2009 09:07:06 +0000 (06:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:43 +0000 (18:40 -0200)
commit42752f7a3f4afbabb513d5769c590e9abe2d0cd6
tree761b9729772e37fb07b27b8d691f33ceac864c3a
parent527aebf29c64a56557f9b44d2852ccb99f91ac3e
V4L/DVB (13176): adv7180: Support checking standard via interrupts

If the I2C device provides an interrupt it is registered and the
standard
is updated via interrupts rather than polling.

Since I2C communication is needed, the interrupt handler fires off a
work which will check the new standard, and store it in the internal
structure.

To handle mutual exclusion a mutex is introduced.

Signed-off-by: Richard Röjfors <richard.rojfors@mocean-labs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/adv7180.c