aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda10071.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 12:46:22 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 06:42:28 -0500
commitb2a29b578d9c21b2e5c88020f830d3c42115c51d (patch)
tree11b79e4dc704c96da0a1458566da786fc7f1a751 /drivers/media/dvb/frontends/tda10071.c
parent787d92e176943913d7583f0f04e6d89a0014c5b4 (diff)
[media] tda10071: convert set_fontend to use DVBv5 parameters
Instead of using dvb_frontend_parameters struct, that were designed for a subset of the supported standards, use the DVBv5 cache information. Also, fill the supported delivery systems at dvb_frontend_ops struct. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/tda10071.c')
-rw-r--r--drivers/media/dvb/frontends/tda10071.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/tda10071.c b/drivers/media/dvb/frontends/tda10071.c
index e9e00ea45db7..68dcce6644eb 100644
--- a/drivers/media/dvb/frontends/tda10071.c
+++ b/drivers/media/dvb/frontends/tda10071.c
@@ -636,8 +636,7 @@ error:
636 return ret; 636 return ret;
637} 637}
638 638
639static int tda10071_set_frontend(struct dvb_frontend *fe, 639static int tda10071_set_frontend(struct dvb_frontend *fe)
640 struct dvb_frontend_parameters *params)
641{ 640{
642 struct tda10071_priv *priv = fe->demodulator_priv; 641 struct tda10071_priv *priv = fe->demodulator_priv;
643 struct tda10071_cmd cmd; 642 struct tda10071_cmd cmd;
@@ -778,7 +777,7 @@ error:
778} 777}
779 778
780static int tda10071_get_frontend(struct dvb_frontend *fe, 779static int tda10071_get_frontend(struct dvb_frontend *fe,
781 struct dvb_frontend_parameters *p) 780 struct dtv_frontend_properties *p)
782{ 781{
783 struct tda10071_priv *priv = fe->demodulator_priv; 782 struct tda10071_priv *priv = fe->demodulator_priv;
784 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 783 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
@@ -1217,6 +1216,7 @@ error:
1217EXPORT_SYMBOL(tda10071_attach); 1216EXPORT_SYMBOL(tda10071_attach);
1218 1217
1219static struct dvb_frontend_ops tda10071_ops = { 1218static struct dvb_frontend_ops tda10071_ops = {
1219 .delsys = { SYS_DVBT, SYS_DVBT2 },
1220 .info = { 1220 .info = {
1221 .name = "NXP TDA10071", 1221 .name = "NXP TDA10071",
1222 .type = FE_QPSK, 1222 .type = FE_QPSK,
@@ -1247,8 +1247,8 @@ static struct dvb_frontend_ops tda10071_ops = {
1247 .init = tda10071_init, 1247 .init = tda10071_init,
1248 .sleep = tda10071_sleep, 1248 .sleep = tda10071_sleep,
1249 1249
1250 .set_frontend_legacy = tda10071_set_frontend, 1250 .set_frontend = tda10071_set_frontend,
1251 .get_frontend_legacy = tda10071_get_frontend, 1251 .get_frontend = tda10071_get_frontend,
1252 1252
1253 .read_status = tda10071_read_status, 1253 .read_status = tda10071_read_status,
1254 .read_snr = tda10071_read_snr, 1254 .read_snr = tda10071_read_snr,