diff options
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dm1105/Kconfig | 1 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 26 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/anysee.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/cx24116.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_algo.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 6 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 2 |
7 files changed, 24 insertions, 19 deletions
diff --git a/drivers/media/dvb/dm1105/Kconfig b/drivers/media/dvb/dm1105/Kconfig index 1332301ef3ae..43f4d44edca6 100644 --- a/drivers/media/dvb/dm1105/Kconfig +++ b/drivers/media/dvb/dm1105/Kconfig | |||
@@ -1,6 +1,7 @@ | |||
1 | config DVB_DM1105 | 1 | config DVB_DM1105 |
2 | tristate "SDMC DM1105 based PCI cards" | 2 | tristate "SDMC DM1105 based PCI cards" |
3 | depends on DVB_CORE && PCI && I2C | 3 | depends on DVB_CORE && PCI && I2C |
4 | depends on INPUT | ||
4 | select DVB_PLL if !DVB_FE_CUSTOMISE | 5 | select DVB_PLL if !DVB_FE_CUSTOMISE |
5 | select DVB_STV0299 if !DVB_FE_CUSTOMISE | 6 | select DVB_STV0299 if !DVB_FE_CUSTOMISE |
6 | select DVB_STV0288 if !DVB_FE_CUSTOMISE | 7 | select DVB_STV0288 if !DVB_FE_CUSTOMISE |
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 | ||
827 | struct dtv_cmds_h dtv_cmds[] = { | 827 | static 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 | ||
965 | void dtv_property_dump(struct dtv_property *tvp) | 965 | static 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 | ||
996 | int is_legacy_delivery_system(fe_delivery_system_t s) | 996 | static 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 | */ |
1010 | void dtv_property_cache_sync(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) | 1010 | static 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 | */ |
1062 | void dtv_property_legacy_params_sync(struct dvb_frontend *fe) | 1063 | static 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 | */ |
1117 | void dtv_property_adv_params_sync(struct dvb_frontend *fe) | 1118 | static 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 | ||
1152 | void dtv_property_cache_submit(struct dvb_frontend *fe) | 1153 | static 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, | |||
1180 | static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, | 1181 | static 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 | ||
1183 | int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp, | 1184 | static 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 | ||
1256 | int dtv_property_process_set(struct dvb_frontend *fe, struct dtv_property *tvp, | 1258 | static 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; |
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c index 5017f08b14a6..c6e7b4215d6b 100644 --- a/drivers/media/dvb/dvb-usb/anysee.c +++ b/drivers/media/dvb/dvb-usb/anysee.c | |||
@@ -41,7 +41,7 @@ | |||
41 | static int dvb_usb_anysee_debug; | 41 | static int dvb_usb_anysee_debug; |
42 | module_param_named(debug, dvb_usb_anysee_debug, int, 0644); | 42 | module_param_named(debug, dvb_usb_anysee_debug, int, 0644); |
43 | MODULE_PARM_DESC(debug, "set debugging level" DVB_USB_DEBUG_STATUS); | 43 | MODULE_PARM_DESC(debug, "set debugging level" DVB_USB_DEBUG_STATUS); |
44 | int dvb_usb_anysee_delsys; | 44 | static int dvb_usb_anysee_delsys; |
45 | module_param_named(delsys, dvb_usb_anysee_delsys, int, 0644); | 45 | module_param_named(delsys, dvb_usb_anysee_delsys, int, 0644); |
46 | MODULE_PARM_DESC(delsys, "select delivery mode (0=DVB-C, 1=DVB-T)"); | 46 | MODULE_PARM_DESC(delsys, "select delivery mode (0=DVB-C, 1=DVB-T)"); |
47 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 47 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c index 4f514d39b98f..28ad609e73f4 100644 --- a/drivers/media/dvb/frontends/cx24116.c +++ b/drivers/media/dvb/frontends/cx24116.c | |||
@@ -369,7 +369,7 @@ static int cx24116_set_inversion(struct cx24116_state *state, | |||
369 | * Not all S2 mmodulation schemes are support and not all rates with | 369 | * Not all S2 mmodulation schemes are support and not all rates with |
370 | * a scheme are support. Especially, no auto detect when in S2 mode. | 370 | * a scheme are support. Especially, no auto detect when in S2 mode. |
371 | */ | 371 | */ |
372 | struct cx24116_modfec { | 372 | static struct cx24116_modfec { |
373 | fe_delivery_system_t delivery_system; | 373 | fe_delivery_system_t delivery_system; |
374 | fe_modulation_t modulation; | 374 | fe_modulation_t modulation; |
375 | fe_code_rate_t fec; | 375 | fe_code_rate_t fec; |
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c index ced9b7ae7d50..83dc7e12d5f0 100644 --- a/drivers/media/dvb/frontends/stb0899_algo.c +++ b/drivers/media/dvb/frontends/stb0899_algo.c | |||
@@ -54,7 +54,7 @@ static u32 stb0899_calc_srate(u32 master_clk, u8 *sfr) | |||
54 | * stb0899_get_srate | 54 | * stb0899_get_srate |
55 | * Get the current symbol rate | 55 | * Get the current symbol rate |
56 | */ | 56 | */ |
57 | u32 stb0899_get_srate(struct stb0899_state *state) | 57 | static u32 stb0899_get_srate(struct stb0899_state *state) |
58 | { | 58 | { |
59 | struct stb0899_internal *internal = &state->internal; | 59 | struct stb0899_internal *internal = &state->internal; |
60 | u8 sfr[3]; | 60 | u8 sfr[3]; |
@@ -763,7 +763,7 @@ static void stb0899_dvbs2_config_csm_auto(struct stb0899_state *state) | |||
763 | stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CSM_CNTRL1, STB0899_OFF0_CSM_CNTRL1, reg); | 763 | stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CSM_CNTRL1, STB0899_OFF0_CSM_CNTRL1, reg); |
764 | } | 764 | } |
765 | 765 | ||
766 | long Log2Int(int number) | 766 | static long Log2Int(int number) |
767 | { | 767 | { |
768 | int i; | 768 | int i; |
769 | 769 | ||
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index bee28f77b93f..10613acf18f5 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c | |||
@@ -134,7 +134,7 @@ static const struct stb0899_tab stb0899_dvbs2rf_tab[] = { | |||
134 | }; | 134 | }; |
135 | 135 | ||
136 | /* DVB-S2 Es/N0 quant in dB/100 vs read value * 100*/ | 136 | /* DVB-S2 Es/N0 quant in dB/100 vs read value * 100*/ |
137 | struct stb0899_tab stb0899_quant_tab[] = { | 137 | static struct stb0899_tab stb0899_quant_tab[] = { |
138 | { 0, 0 }, | 138 | { 0, 0 }, |
139 | { 0, 100 }, | 139 | { 0, 100 }, |
140 | { 600, 200 }, | 140 | { 600, 200 }, |
@@ -177,7 +177,7 @@ struct stb0899_tab stb0899_quant_tab[] = { | |||
177 | }; | 177 | }; |
178 | 178 | ||
179 | /* DVB-S2 Es/N0 estimate in dB/100 vs read value */ | 179 | /* DVB-S2 Es/N0 estimate in dB/100 vs read value */ |
180 | struct stb0899_tab stb0899_est_tab[] = { | 180 | static struct stb0899_tab stb0899_est_tab[] = { |
181 | { 0, 0 }, | 181 | { 0, 0 }, |
182 | { 0, 1 }, | 182 | { 0, 1 }, |
183 | { 301, 2 }, | 183 | { 301, 2 }, |
@@ -217,7 +217,7 @@ struct stb0899_tab stb0899_est_tab[] = { | |||
217 | { 5721, 526017 }, | 217 | { 5721, 526017 }, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg) | 220 | static int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg) |
221 | { | 221 | { |
222 | int ret; | 222 | int ret; |
223 | 223 | ||
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index 4d2a5cf27c31..bcbc5d41a0fe 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -1337,7 +1337,7 @@ static struct stb0899_config tt3200_config = { | |||
1337 | .tuner_set_rfsiggain = NULL | 1337 | .tuner_set_rfsiggain = NULL |
1338 | }; | 1338 | }; |
1339 | 1339 | ||
1340 | struct stb6100_config tt3200_stb6100_config = { | 1340 | static struct stb6100_config tt3200_stb6100_config = { |
1341 | .tuner_address = 0x60, | 1341 | .tuner_address = 0x60, |
1342 | .refclock = 27000000, | 1342 | .refclock = 27000000, |
1343 | }; | 1343 | }; |