Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fd8b263 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (5755): Tda8290: store tuning operations in tuner_operations structure



Create static struct tuner_operations tda8290_tuner_ops
for tda8290 tuning function callback pointers

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent c22bcb07
Loading
Loading
Loading
Loading
+10 −5
Original line number Original line Diff line number Diff line
@@ -603,6 +603,14 @@ static void tda8290_release(struct i2c_client *c)
	t->priv = NULL;
	t->priv = NULL;
}
}


static struct tuner_operations tda8290_tuner_ops = {
	.set_tv_freq    = set_tv_freq,
	.set_radio_freq = set_radio_freq,
	.has_signal     = has_signal,
	.standby        = standby,
	.release        = tda8290_release,
};

int tda8290_init(struct i2c_client *c)
int tda8290_init(struct i2c_client *c)
{
{
	struct tda8290_priv *priv = NULL;
	struct tda8290_priv *priv = NULL;
@@ -667,11 +675,8 @@ int tda8290_init(struct i2c_client *c)
	}
	}
	tuner_info("type set to %s\n", c->name);
	tuner_info("type set to %s\n", c->name);


	t->ops.set_tv_freq    = set_tv_freq;
	memcpy(&t->ops, &tda8290_tuner_ops, sizeof(struct tuner_operations));
	t->ops.set_radio_freq = set_radio_freq;

	t->ops.has_signal = has_signal;
	t->ops.standby = standby;
	t->ops.release = tda8290_release;
	priv->tda827x_lpsel = 0;
	priv->tda827x_lpsel = 0;
	t->mode = V4L2_TUNER_ANALOG_TV;
	t->mode = V4L2_TUNER_ANALOG_TV;