aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-04 23:19:06 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-07 19:18:55 -0500
commit072ce0c50983033d35c63314e2be849568f116c2 (patch)
tree878936e88fb055950a98fbe5a11bc1236c013000 /drivers/media
parent26cdc76b2c0b24f7a9c33ab226ca6e4bbae3dbbb (diff)
V4L/DVB (10178): dvb_frontend: Fix some sparse warnings due to static symbols
/home/v4l/master/v4l/dvb_frontend.c:838:19: warning: symbol 'dtv_cmds' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1035:6: warning: symbol 'dtv_property_dump' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1066:5: warning: symbol 'is_legacy_delivery_system' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1080:6: warning: symbol 'dtv_property_cache_sync' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1132:6: warning: symbol 'dtv_property_legacy_params_sync' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1187:6: warning: symbol 'dtv_property_adv_params_sync' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1222:6: warning: symbol 'dtv_property_cache_submit' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1253:5: warning: symbol 'dtv_property_process_get' was not declared. Should it be static? /home/v4l/master/v4l/dvb_frontend.c:1362:5: warning: symbol 'dtv_property_process_set' was not declared. Should it be static? Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index 171f9ca124f7..843407785083 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -824,7 +824,7 @@ static int dvb_frontend_check_parameters(struct dvb_frontend *fe,
824 return 0; 824 return 0;
825} 825}
826 826
827struct dtv_cmds_h dtv_cmds[] = { 827static struct dtv_cmds_h dtv_cmds[] = {
828 [DTV_TUNE] = { 828 [DTV_TUNE] = {
829 .name = "DTV_TUNE", 829 .name = "DTV_TUNE",
830 .cmd = DTV_TUNE, 830 .cmd = DTV_TUNE,
@@ -962,7 +962,7 @@ struct dtv_cmds_h dtv_cmds[] = {
962 }, 962 },
963}; 963};
964 964
965void dtv_property_dump(struct dtv_property *tvp) 965static void dtv_property_dump(struct dtv_property *tvp)
966{ 966{
967 int i; 967 int i;
968 968
@@ -993,7 +993,7 @@ void dtv_property_dump(struct dtv_property *tvp)
993 dprintk("%s() tvp.u.data = 0x%08x\n", __func__, tvp->u.data); 993 dprintk("%s() tvp.u.data = 0x%08x\n", __func__, tvp->u.data);
994} 994}
995 995
996int is_legacy_delivery_system(fe_delivery_system_t s) 996static int is_legacy_delivery_system(fe_delivery_system_t s)
997{ 997{
998 if((s == SYS_UNDEFINED) || (s == SYS_DVBC_ANNEX_AC) || 998 if((s == SYS_UNDEFINED) || (s == SYS_DVBC_ANNEX_AC) ||
999 (s == SYS_DVBC_ANNEX_B) || (s == SYS_DVBT) || (s == SYS_DVBS) || 999 (s == SYS_DVBC_ANNEX_B) || (s == SYS_DVBT) || (s == SYS_DVBS) ||
@@ -1007,7 +1007,8 @@ int is_legacy_delivery_system(fe_delivery_system_t s)
1007 * drivers can use a single set_frontend tuning function, regardless of whether 1007 * drivers can use a single set_frontend tuning function, regardless of whether
1008 * it's being used for the legacy or new API, reducing code and complexity. 1008 * it's being used for the legacy or new API, reducing code and complexity.
1009 */ 1009 */
1010void dtv_property_cache_sync(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) 1010static void dtv_property_cache_sync(struct dvb_frontend *fe,
1011 struct dvb_frontend_parameters *p)
1011{ 1012{
1012 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 1013 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
1013 1014
@@ -1059,7 +1060,7 @@ void dtv_property_cache_sync(struct dvb_frontend *fe, struct dvb_frontend_parame
1059/* Ensure the cached values are set correctly in the frontend 1060/* Ensure the cached values are set correctly in the frontend
1060 * legacy tuning structures, for the advanced tuning API. 1061 * legacy tuning structures, for the advanced tuning API.
1061 */ 1062 */
1062void dtv_property_legacy_params_sync(struct dvb_frontend *fe) 1063static void dtv_property_legacy_params_sync(struct dvb_frontend *fe)
1063{ 1064{
1064 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 1065 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
1065 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1066 struct dvb_frontend_private *fepriv = fe->frontend_priv;
@@ -1114,7 +1115,7 @@ void dtv_property_legacy_params_sync(struct dvb_frontend *fe)
1114/* Ensure the cached values are set correctly in the frontend 1115/* Ensure the cached values are set correctly in the frontend
1115 * legacy tuning structures, for the legacy tuning API. 1116 * legacy tuning structures, for the legacy tuning API.
1116 */ 1117 */
1117void dtv_property_adv_params_sync(struct dvb_frontend *fe) 1118static void dtv_property_adv_params_sync(struct dvb_frontend *fe)
1118{ 1119{
1119 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 1120 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
1120 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1121 struct dvb_frontend_private *fepriv = fe->frontend_priv;
@@ -1149,7 +1150,7 @@ void dtv_property_adv_params_sync(struct dvb_frontend *fe)
1149 } 1150 }
1150} 1151}
1151 1152
1152void dtv_property_cache_submit(struct dvb_frontend *fe) 1153static void dtv_property_cache_submit(struct dvb_frontend *fe)
1153{ 1154{
1154 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 1155 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
1155 1156
@@ -1180,8 +1181,9 @@ static int dvb_frontend_ioctl_legacy(struct inode *inode, struct file *file,
1180static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, 1181static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file,
1181 unsigned int cmd, void *parg); 1182 unsigned int cmd, void *parg);
1182 1183
1183int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp, 1184static int dtv_property_process_get(struct dvb_frontend *fe,
1184 struct inode *inode, struct file *file) 1185 struct dtv_property *tvp,
1186 struct inode *inode, struct file *file)
1185{ 1187{
1186 int r = 0; 1188 int r = 0;
1187 1189
@@ -1253,8 +1255,10 @@ int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp,
1253 return r; 1255 return r;
1254} 1256}
1255 1257
1256int dtv_property_process_set(struct dvb_frontend *fe, struct dtv_property *tvp, 1258static int dtv_property_process_set(struct dvb_frontend *fe,
1257 struct inode *inode, struct file *file) 1259 struct dtv_property *tvp,
1260 struct inode *inode,
1261 struct file *file)
1258{ 1262{
1259 int r = 0; 1263 int r = 0;
1260 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1264 struct dvb_frontend_private *fepriv = fe->frontend_priv;