V4L/DVB (8951): xc5000: dont pass devptr in xc5000_attach()
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 6 Sep 2008 17:56:58 +0000 (14:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:37:01 +0000 (09:37 -0200)
commit30650961907368b1077cade35455fe931b14da6b
treea27bbcb9319529b6d13da933adff4c069a12b853
parent2a6003c20771ca16fc6386b5fd258df2f2fa8232
V4L/DVB (8951): xc5000: dont pass devptr in xc5000_attach()

Dont pass devptr in xc5000_attach, dont store it in xc5000_priv.
This pointer is passed into the tuner_callback function, which always
expects a pointer to fe->dvb->priv or i2c_adapter->algo_data.

This prevents future possible bugs in new drivers, such as using a "devptr"
other that the standard fe->dvb->priv in a DVB driver.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c
drivers/media/common/tuners/xc5000.h
drivers/media/video/au0828/au0828-dvb.c
drivers/media/video/cx23885/cx23885-dvb.c
drivers/media/video/cx88/cx88-dvb.c
drivers/media/video/tuner-core.c