]> git.baikalelectronics.ru Git - kernel.git/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)
commit4d8789524f23c75e6955978ffd5b41905a778d3e
tree9744ce1e24d63a1dbfdc123c9e5e569b9fede9a9
parentb518c9485c7009565e7212d7db6873e82a3a85d1
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