aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Roth <neolynx@gmail.com>2014-09-13 17:08:28 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-13 17:47:36 -0300
commitc978401b99824ccf3f57a89c02ca8f910c0dd23e (patch)
tree48661a0f020fd6151015b73fc803f75d225f78f8
parentf2c8d5ffcc91bd222a23ad0ab26a7d7099043fd6 (diff)
libdvbv5: fix satellite LNBf handling
the LNBf is part of the public structure, remove it from dvb_v5_fe_parms_priv. fix typo for C++. Signed-off-by: André Roth <neolynx@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--lib/include/libdvbv5/dvb-sat.h2
-rw-r--r--lib/libdvbv5/dvb-fe-priv.h1
-rw-r--r--lib/libdvbv5/dvb-sat.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/include/libdvbv5/dvb-sat.h b/lib/include/libdvbv5/dvb-sat.h
index d80a619d..c80545c6 100644
--- a/lib/include/libdvbv5/dvb-sat.h
+++ b/lib/include/libdvbv5/dvb-sat.h
@@ -84,7 +84,7 @@ struct dvb_sat_lnb {
struct dvb_v5_fe_parms;
#ifdef __cplusplus
-extern "C"
+extern "C" {
#endif
/* From libsat.c */
diff --git a/lib/libdvbv5/dvb-fe-priv.h b/lib/libdvbv5/dvb-fe-priv.h
index 9194431b..195c3bfb 100644
--- a/lib/libdvbv5/dvb-fe-priv.h
+++ b/lib/libdvbv5/dvb-fe-priv.h
@@ -65,7 +65,6 @@ struct dvb_v5_fe_parms_priv {
struct dvb_v5_stats stats;
/* Satellite specific stuff */
- const struct dvb_sat_lnb *lnb;
int high_band;
unsigned freq_offset;
};
diff --git a/lib/libdvbv5/dvb-sat.c b/lib/libdvbv5/dvb-sat.c
index 8befe287..e8df06bd 100644
--- a/lib/libdvbv5/dvb-sat.c
+++ b/lib/libdvbv5/dvb-sat.c
@@ -356,7 +356,7 @@ static int dvbsat_diseqc_set_input(struct dvb_v5_fe_parms_priv *parms,
int dvb_sat_set_parms(struct dvb_v5_fe_parms *p)
{
struct dvb_v5_fe_parms_priv *parms = (void *)p;
- const struct dvb_sat_lnb *lnb = parms->lnb;
+ const struct dvb_sat_lnb *lnb = p->lnb;
enum dvb_sat_polarization pol;
dvb_fe_retrieve_parm(&parms->p, DTV_POLARIZATION, &pol);
uint32_t freq;

Privacy Policy