]> err.no Git - linux-2.6/commit
V4L/DVB (7348): tuner-simple: do not send i2c commands if there is no i2c adapter
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 22 Apr 2008 17:45:52 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:49 +0000 (14:07 -0300)
commita81df363554fb6439b5eb4ada06ad546a1df5ce3
tree9744ce1e24d63a1dbfdc123c9e5e569b9fede9a9
parent62325497db6ef3b13cae41d5038e2693997d7d3e
V4L/DVB (7348): tuner-simple: do not send i2c commands if there is no i2c adapter

if (priv->i2c_props.adap == NULL) then exit any function that would
send commands over the i2c bus.  We allow drivers to attach without an
i2c adapter for cases where the dvb demod accesses the tuner directly
via calc_regs.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-simple.c