diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-30 20:25:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 06:58:19 -0500 |
commit | 59d3cc1975db3676da707ea7083dc7e15117409d (patch) | |
tree | 285c4f868d2983e127e11928ea4ae34dbc428f96 /drivers/media/dvb/frontends | |
parent | f311f68abba633426643bb5e743e4edac4ddf838 (diff) |
[media] af9013: convert get|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')
-rw-r--r-- | drivers/media/dvb/frontends/af9013.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c index 8a8f78aa3990..a70358c06230 100644 --- a/drivers/media/dvb/frontends/af9013.c +++ b/drivers/media/dvb/frontends/af9013.c | |||
@@ -572,8 +572,7 @@ static int af9013_get_tune_settings(struct dvb_frontend *fe, | |||
572 | return 0; | 572 | return 0; |
573 | } | 573 | } |
574 | 574 | ||
575 | static int af9013_set_frontend(struct dvb_frontend *fe, | 575 | static int af9013_set_frontend(struct dvb_frontend *fe) |
576 | struct dvb_frontend_parameters *p) | ||
577 | { | 576 | { |
578 | struct af9013_state *state = fe->demodulator_priv; | 577 | struct af9013_state *state = fe->demodulator_priv; |
579 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | 578 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; |
@@ -847,10 +846,9 @@ err: | |||
847 | } | 846 | } |
848 | 847 | ||
849 | static int af9013_get_frontend(struct dvb_frontend *fe, | 848 | static int af9013_get_frontend(struct dvb_frontend *fe, |
850 | struct dvb_frontend_parameters *p) | 849 | struct dtv_frontend_properties *c) |
851 | { | 850 | { |
852 | struct af9013_state *state = fe->demodulator_priv; | 851 | struct af9013_state *state = fe->demodulator_priv; |
853 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | ||
854 | int ret; | 852 | int ret; |
855 | u8 buf[3]; | 853 | u8 buf[3]; |
856 | 854 | ||
@@ -1482,6 +1480,7 @@ err: | |||
1482 | EXPORT_SYMBOL(af9013_attach); | 1480 | EXPORT_SYMBOL(af9013_attach); |
1483 | 1481 | ||
1484 | static struct dvb_frontend_ops af9013_ops = { | 1482 | static struct dvb_frontend_ops af9013_ops = { |
1483 | .delsys = { SYS_DVBT }, | ||
1485 | .info = { | 1484 | .info = { |
1486 | .name = "Afatech AF9013", | 1485 | .name = "Afatech AF9013", |
1487 | .type = FE_OFDM, | 1486 | .type = FE_OFDM, |
@@ -1512,8 +1511,8 @@ static struct dvb_frontend_ops af9013_ops = { | |||
1512 | .sleep = af9013_sleep, | 1511 | .sleep = af9013_sleep, |
1513 | 1512 | ||
1514 | .get_tune_settings = af9013_get_tune_settings, | 1513 | .get_tune_settings = af9013_get_tune_settings, |
1515 | .set_frontend_legacy = af9013_set_frontend, | 1514 | .set_frontend = af9013_set_frontend, |
1516 | .get_frontend_legacy = af9013_get_frontend, | 1515 | .get_frontend = af9013_get_frontend, |
1517 | 1516 | ||
1518 | .read_status = af9013_read_status, | 1517 | .read_status = af9013_read_status, |
1519 | .read_snr = af9013_read_snr, | 1518 | .read_snr = af9013_read_snr, |