Return-path: Received: from mail-wg0-f44.google.com ([74.125.82.44]:55438 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967367Ab2ERVBM (ORCPT ); Fri, 18 May 2012 17:01:12 -0400 Received: by wgbdr13 with SMTP id dr13so3126345wgb.1 for ; Fri, 18 May 2012 14:01:11 -0700 (PDT) From: Gregor Jasny To: linux-media@vger.kernel.org Cc: Gregor Jasny Subject: [PATCH] libdvbv5: constify and hide dvb_sat_lnb Date: Fri, 18 May 2012 23:00:47 +0200 Message-Id: <1337374847-12771-1-git-send-email-gjasny@googlemail.com> Sender: linux-media-owner@vger.kernel.org List-ID: Signed-off-by: Gregor Jasny --- lib/include/dvb-fe.h | 2 +- lib/include/libsat.h | 2 +- lib/libdvbv5/libsat.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/include/dvb-fe.h b/lib/include/dvb-fe.h index 872a558..062edd8 100644 --- a/lib/include/dvb-fe.h +++ b/lib/include/dvb-fe.h @@ -76,7 +76,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/libsat.h b/lib/include/libsat.h index 2e74a11..57e5511 100644 --- a/lib/include/libsat.h +++ b/lib/include/libsat.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/libsat.c b/lib/libdvbv5/libsat.c index 126dc4e..5f8cbdd 100644 --- a/lib/libdvbv5/libsat.c +++ b/lib/libdvbv5/libsat.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", -- 1.7.10