From: Mauro Carvalho Chehab Date: Sun, 8 Feb 2009 11:34:43 +0000 (-0300) Subject: V4L/DVB (10504): tda827x: Be sure that gate will be open/closed at the proper time X-Git-Tag: v2.6.30-rc1~621^2~540 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d5ce70217ddd20baf3583ce25f08e869eb148f;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed