]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (10504): tda827x: Be sure that gate will be open/closed at the proper time
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 8 Feb 2009 11:34:43 +0000 (08:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:42 +0000 (12:42 -0300)
commit8b45313a8b7f4b87ee358d6b2fffaa39a9d91658
tree9c12af53f7291e96f8a58f3596fda922a5155783
parentd09657e1c6b546304402f3ddda8096e439eff522
V4L/DVB (10504): tda827x: Be sure that gate will be open/closed at the proper time

The gate control logic is broken: several routines just keep it open;
other rotines close it properly; there are even other routines that
assumes that it is open without really checking or opening it.

Instead of having to manually handle the gate control and having such
troubles, let a sub-routine take care of the gate, opening it before
i2c_transfer and closing it after that. This avoids leaving the gate
into a random state.

Cc: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda827x.c