This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: [media] libdvbv5: constify and hide dvb_sat_lnb
Author:  Gregor Jasny <[email protected]>
Date:    Fri May 18 17:07:52 2012 -0300

[[email protected]: patch rebased to apply against the latest version]
Signed-off-by: Gregor Jasny <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 lib/include/dvb-fe.h   |    2 +-
 lib/include/dvb-sat.h  |    2 +-
 lib/libdvbv5/dvb-sat.c |    6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=a800539e2584eb6b6cacea454fa57f9a0a2946f9

diff --git a/lib/include/dvb-fe.h b/lib/include/dvb-fe.h
index 8877356..808e32c 100644
--- a/lib/include/dvb-fe.h
+++ b/lib/include/dvb-fe.h
@@ -90,7 +90,7 @@ struct dvb_v5_fe_parms {
        struct dvb_v5_stats             stats;
 
        /* Satellite specific stuff, specified by the library client */
-       struct dvb_sat_lnb              *lnb;
+       const struct dvb_sat_lnb        *lnb;
        int                             sat_number;
        unsigned                        freq_bpf;
 
diff --git a/lib/include/dvb-sat.h b/lib/include/dvb-sat.h
index 2e74a11..57e5511 100644
--- a/lib/include/dvb-sat.h
+++ b/lib/include/dvb-sat.h
@@ -47,7 +47,7 @@ extern "C" {
 int dvb_sat_search_lnb(const char *name);
 int print_lnb(int i);
 void print_all_lnb(void);
-struct dvb_sat_lnb *dvb_sat_get_lnb(int i);
+const struct dvb_sat_lnb *dvb_sat_get_lnb(int i);
 int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms);
 int dvb_sat_get_parms(struct dvb_v5_fe_parms *parms);
 
diff --git a/lib/libdvbv5/dvb-sat.c b/lib/libdvbv5/dvb-sat.c
index c93b882..25995fb 100644
--- a/lib/libdvbv5/dvb-sat.c
+++ b/lib/libdvbv5/dvb-sat.c
@@ -25,7 +25,7 @@
 #include "dvb-fe.h"
 #include "dvb-v5-std.h"
 
-struct dvb_sat_lnb lnb[] = {
+static const struct dvb_sat_lnb lnb[] = {
        {
                .name = "Europe",
                .alias = "UNIVERSAL",
@@ -131,7 +131,7 @@ void print_all_lnb(void)
        }
 }
 
-struct dvb_sat_lnb *dvb_sat_get_lnb(int i)
+const struct dvb_sat_lnb *dvb_sat_get_lnb(int i)
 {
        if (i < 0 || i >= ARRAY_SIZE(lnb))
                return NULL;
@@ -347,7 +347,7 @@ static int dvbsat_diseqc_set_input(struct dvb_v5_fe_parms 
*parms, uint16_t t)
 
 int dvb_sat_set_parms(struct dvb_v5_fe_parms *parms)
 {
-       struct dvb_sat_lnb *lnb = parms->lnb;
+       const struct dvb_sat_lnb *lnb = parms->lnb;
        enum dvb_sat_polarization pol;
        dvb_fe_retrieve_parm(parms, DTV_POLARIZATION, &pol);
        uint32_t freq;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to