V4L/DVB (11787): xc5000: cleanup i2c read routines
authorDevin Heitmueller <devin.heitmueller@gmail.com>
Sun, 16 Nov 2008 23:17:14 +0000 (20:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:04 +0000 (18:21 -0300)
commitbdd335636a1afe1f30076915395874549be8cd35
tree20a0e609aa1ed8709bbe2ccce20b31d8bcab33b3
parent91bd625e217452f01fc568f4d2cb3ad5cee4640c
V4L/DVB (11787): xc5000: cleanup i2c read routines

This patch centralizes the i2c read functions, and eliminates pass-through
function only called by one caller.

Make reading of xc5000 registers an atomic i2c transaction in case we're on a
multi-master bus.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c