Commit 836a52bf authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 38d945e0
...@@ -4711,23 +4711,8 @@ int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio, u8 dir, u8 value, ...@@ -4711,23 +4711,8 @@ int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio, u8 dir, u8 value,
} }
EXPORT_SYMBOL(stv090x_set_gpio); EXPORT_SYMBOL(stv090x_set_gpio);
static int stv090x_get_property(struct dvb_frontend *fe, struct dtv_property *p)
{
switch (p->cmd) {
case DTV_ENUM_DELSYS:
p->u.buffer.data[0] = SYS_DSS;
p->u.buffer.data[1] = SYS_DVBS;
p->u.buffer.data[2] = SYS_DVBS2;
p->u.buffer.len = 3;
break;
default:
break;
}
return 0;
}
static struct dvb_frontend_ops stv090x_ops = { static struct dvb_frontend_ops stv090x_ops = {
.delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS },
.info = { .info = {
.name = "STV090x Multistandard", .name = "STV090x Multistandard",
.type = FE_QPSK, .type = FE_QPSK,
...@@ -4759,8 +4744,6 @@ static struct dvb_frontend_ops stv090x_ops = { ...@@ -4759,8 +4744,6 @@ static struct dvb_frontend_ops stv090x_ops = {
.read_ber = stv090x_read_per, .read_ber = stv090x_read_per,
.read_signal_strength = stv090x_read_signal_strength, .read_signal_strength = stv090x_read_signal_strength,
.read_snr = stv090x_read_cnr, .read_snr = stv090x_read_cnr,
.get_property = stv090x_get_property,
}; };
......
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