Commit 0fea03fb authored by Hartmut Hackmann's avatar Hartmut Hackmann Committed by Mauro Carvalho Chehab

V4L/DVB (7396): saa7134: fixed pointer in tuner callback

The pointer transferred directly points to the saa7134_dev
structure
Signed-off-by: default avatarHartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent e9c1ac9d
...@@ -5258,8 +5258,7 @@ static int saa7134_tda8290_callback(struct saa7134_dev *dev, ...@@ -5258,8 +5258,7 @@ static int saa7134_tda8290_callback(struct saa7134_dev *dev,
int saa7134_tuner_callback(void *priv, int command, int arg) int saa7134_tuner_callback(void *priv, int command, int arg)
{ {
struct i2c_algo_bit_data *i2c_algo = priv; struct saa7134_dev *dev = priv;
struct saa7134_dev *dev = i2c_algo->data;
if (dev != NULL) { if (dev != NULL) {
switch (dev->tuner_type) { switch (dev->tuner_type) {
case TUNER_PHILIPS_TDA8290: case TUNER_PHILIPS_TDA8290:
......
...@@ -1199,7 +1199,6 @@ static int dvb_init(struct saa7134_dev *dev) ...@@ -1199,7 +1199,6 @@ static int dvb_init(struct saa7134_dev *dev)
struct xc2028_config cfg = { struct xc2028_config cfg = {
.i2c_adap = &dev->i2c_adap, .i2c_adap = &dev->i2c_adap,
.i2c_addr = 0x61, .i2c_addr = 0x61,
.video_dev = dev->i2c_adap.algo_data,
}; };
fe = dvb_attach(xc2028_attach, dev->dvb.frontend, &cfg); fe = dvb_attach(xc2028_attach, dev->dvb.frontend, &cfg);
if (!fe) { if (!fe) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment