aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 12:11:35 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 06:36:53 -0500
commit14e3dcca4ad024f8ae46b4c8443be4aeff188883 (patch)
treeed73b4ccaabc6d5d5e01ce8e0402eeb7230dec50
parent9f69afbe31f94e84b79cc085ffc727c724dcbeeb (diff)
[media] si21xx: 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>
-rw-r--r--drivers/media/dvb/frontends/si21xx.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/media/dvb/frontends/si21xx.c b/drivers/media/dvb/frontends/si21xx.c
index badf4492d01a..e223f3564433 100644
--- a/drivers/media/dvb/frontends/si21xx.c
+++ b/drivers/media/dvb/frontends/si21xx.c
@@ -690,20 +690,7 @@ static int si21xx_setacquire(struct dvb_frontend *fe, int symbrate,
690 return status; 690 return status;
691} 691}
692 692
693static int si21xx_set_property(struct dvb_frontend *fe, struct dtv_property *p) 693static int si21xx_set_frontend(struct dvb_frontend *fe)
694{
695 dprintk("%s(..)\n", __func__);
696 return 0;
697}
698
699static int si21xx_get_property(struct dvb_frontend *fe, struct dtv_property *p)
700{
701 dprintk("%s(..)\n", __func__);
702 return 0;
703}
704
705static int si21xx_set_frontend(struct dvb_frontend *fe,
706 struct dvb_frontend_parameters *dfp)
707{ 694{
708 struct si21xx_state *state = fe->demodulator_priv; 695 struct si21xx_state *state = fe->demodulator_priv;
709 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 696 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
@@ -877,7 +864,7 @@ static void si21xx_release(struct dvb_frontend *fe)
877} 864}
878 865
879static struct dvb_frontend_ops si21xx_ops = { 866static struct dvb_frontend_ops si21xx_ops = {
880 867 .delsys = { SYS_DVBS },
881 .info = { 868 .info = {
882 .name = "SL SI21XX DVB-S", 869 .name = "SL SI21XX DVB-S",
883 .type = FE_QPSK, 870 .type = FE_QPSK,
@@ -908,9 +895,7 @@ static struct dvb_frontend_ops si21xx_ops = {
908 .set_tone = si21xx_set_tone, 895 .set_tone = si21xx_set_tone,
909 .set_voltage = si21xx_set_voltage, 896 .set_voltage = si21xx_set_voltage,
910 897
911 .set_property = si21xx_set_property, 898 .set_frontend = si21xx_set_frontend,
912 .get_property = si21xx_get_property,
913 .set_frontend_legacy = si21xx_set_frontend,
914}; 899};
915 900
916struct dvb_frontend *si21xx_attach(const struct si21xx_config *config, 901struct dvb_frontend *si21xx_attach(const struct si21xx_config *config,