aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 12:39:48 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 06:39:20 -0500
commit836a52bff76ff105d80a337ebe68a049900b3331 (patch)
treef0bc9a9e0d1b1aed39a75b2ad63a485590c87b1e /drivers/media/dvb/frontends
parent38d945e05c20d29aa01f1bb3806281a4d2bd3a36 (diff)
[media] stv090x: use .delsys property, instead of get_property()
Now that the DVB ops struct contains the supported delivery systems, use it, instead of adding a get_property() callback just due to that. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r--drivers/media/dvb/frontends/stv090x.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c
index 8a2637c20d7c..574ef67fcdad 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -4711,23 +4711,8 @@ int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio, u8 dir, u8 value,
4711} 4711}
4712EXPORT_SYMBOL(stv090x_set_gpio); 4712EXPORT_SYMBOL(stv090x_set_gpio);
4713 4713
4714static int stv090x_get_property(struct dvb_frontend *fe, struct dtv_property *p)
4715{
4716 switch (p->cmd) {
4717 case DTV_ENUM_DELSYS:
4718 p->u.buffer.data[0] = SYS_DSS;
4719 p->u.buffer.data[1] = SYS_DVBS;
4720 p->u.buffer.data[2] = SYS_DVBS2;
4721 p->u.buffer.len = 3;
4722 break;
4723 default:
4724 break;
4725 }
4726 return 0;
4727}
4728
4729static struct dvb_frontend_ops stv090x_ops = { 4714static struct dvb_frontend_ops stv090x_ops = {
4730 4715 .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS },
4731 .info = { 4716 .info = {
4732 .name = "STV090x Multistandard", 4717 .name = "STV090x Multistandard",
4733 .type = FE_QPSK, 4718 .type = FE_QPSK,
@@ -4759,8 +4744,6 @@ static struct dvb_frontend_ops stv090x_ops = {
4759 .read_ber = stv090x_read_per, 4744 .read_ber = stv090x_read_per,
4760 .read_signal_strength = stv090x_read_signal_strength, 4745 .read_signal_strength = stv090x_read_signal_strength,
4761 .read_snr = stv090x_read_cnr, 4746 .read_snr = stv090x_read_cnr,
4762
4763 .get_property = stv090x_get_property,
4764}; 4747};
4765 4748
4766 4749