aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 22:22:22 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 22:22:22 -0500
commitd8c532c40721f7507896d202b8cae3b3642d2b0d (patch)
tree42b1ce76671eb85324281ed93491432f4523f983 /drivers/media/dvb-frontends
parente777d192ffb9f2929d547a2f8a5f65b7db7a9552 (diff)
parent77c53d0b56264a8fc5844e087ad15fffe20c299d (diff)
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media updates from Mauro Carvalho Chehab: - Missing MAINTAINERS entries were added for several drivers - Adds V4L2 support for DMABUF handling, allowing zero-copy buffer sharing between V4L2 devices and GPU - Got rid of all warnings when compiling with W=1 on x86 - Add a new driver for Exynos hardware (s3c-camif) - Several bug fixes, cleanups and driver improvements * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (243 commits) [media] omap3isp: Replace cpu_is_omap3630() with ISP revision check [media] omap3isp: Prepare/unprepare clocks before/after enable/disable [media] omap3isp: preview: Add support for 8-bit formats at the sink pad [media] omap3isp: Replace printk with dev_* [media] omap3isp: Find source pad from external entity [media] omap3isp: Configure CSI-2 phy based on platform data [media] omap3isp: Add PHY routing configuration [media] omap3isp: Add CSI configuration registers from control block to ISP resources [media] omap3isp: Remove unneeded module memory address definitions [media] omap3isp: Use monotonic timestamps for statistics buffers [media] uvcvideo: Fix control value clamping for unsigned integer controls [media] uvcvideo: Mark first output terminal as default video node [media] uvcvideo: Add VIDIOC_[GS]_PRIORITY support [media] uvcvideo: Return -ENOTTY for unsupported ioctls [media] uvcvideo: Set device_caps in VIDIOC_QUERYCAP [media] uvcvideo: Don't fail when an unsupported format is requested [media] uvcvideo: Return -EACCES when trying to access a read/write-only control [media] uvcvideo: Set error_idx properly for extended controls API failures [media] rtl28xxu: add NOXON DAB/DAB+ USB dongle rev 2 [media] fc2580: write some registers conditionally ...
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/cx22700.c4
-rw-r--r--drivers/media/dvb-frontends/cx24123.c2
-rw-r--r--drivers/media/dvb-frontends/dib9000.h2
-rw-r--r--drivers/media/dvb-frontends/drxd_hard.c8
-rw-r--r--drivers/media/dvb-frontends/drxk_hard.c24
-rw-r--r--drivers/media/dvb-frontends/drxk_hard.h6
-rw-r--r--drivers/media/dvb-frontends/ds3000.c15
-rw-r--r--drivers/media/dvb-frontends/l64781.c4
-rw-r--r--drivers/media/dvb-frontends/mt312.c4
-rw-r--r--drivers/media/dvb-frontends/rtl2830.c6
-rw-r--r--drivers/media/dvb-frontends/rtl2832.c6
-rw-r--r--drivers/media/dvb-frontends/stb0899_drv.c2
-rw-r--r--drivers/media/dvb-frontends/stv0367.c19
-rw-r--r--drivers/media/dvb-frontends/tda10071.c6
-rw-r--r--drivers/media/dvb-frontends/tda18271c2dd.c1
15 files changed, 42 insertions, 67 deletions
diff --git a/drivers/media/dvb-frontends/cx22700.c b/drivers/media/dvb-frontends/cx22700.c
index f2a90f990ce3..3d399d9a6343 100644
--- a/drivers/media/dvb-frontends/cx22700.c
+++ b/drivers/media/dvb-frontends/cx22700.c
@@ -139,7 +139,7 @@ static int cx22700_set_tps(struct cx22700_state *state,
139 if (p->code_rate_HP == FEC_4_5 || p->code_rate_LP == FEC_4_5) 139 if (p->code_rate_HP == FEC_4_5 || p->code_rate_LP == FEC_4_5)
140 return -EINVAL; 140 return -EINVAL;
141 141
142 if (p->guard_interval < GUARD_INTERVAL_1_32 || 142 if ((int)p->guard_interval < GUARD_INTERVAL_1_32 ||
143 p->guard_interval > GUARD_INTERVAL_1_4) 143 p->guard_interval > GUARD_INTERVAL_1_4)
144 return -EINVAL; 144 return -EINVAL;
145 145
@@ -152,7 +152,7 @@ static int cx22700_set_tps(struct cx22700_state *state,
152 p->modulation != QAM_64) 152 p->modulation != QAM_64)
153 return -EINVAL; 153 return -EINVAL;
154 154
155 if (p->hierarchy < HIERARCHY_NONE || 155 if ((int)p->hierarchy < HIERARCHY_NONE ||
156 p->hierarchy > HIERARCHY_4) 156 p->hierarchy > HIERARCHY_4)
157 return -EINVAL; 157 return -EINVAL;
158 158
diff --git a/drivers/media/dvb-frontends/cx24123.c b/drivers/media/dvb-frontends/cx24123.c
index 7e28b4ee7d4f..68c88ab58e71 100644
--- a/drivers/media/dvb-frontends/cx24123.c
+++ b/drivers/media/dvb-frontends/cx24123.c
@@ -338,7 +338,7 @@ static int cx24123_set_fec(struct cx24123_state *state, fe_code_rate_t fec)
338{ 338{
339 u8 nom_reg = cx24123_readreg(state, 0x0e) & ~0x07; 339 u8 nom_reg = cx24123_readreg(state, 0x0e) & ~0x07;
340 340
341 if ((fec < FEC_NONE) || (fec > FEC_AUTO)) 341 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO))
342 fec = FEC_AUTO; 342 fec = FEC_AUTO;
343 343
344 /* Set the soft decision threshold */ 344 /* Set the soft decision threshold */
diff --git a/drivers/media/dvb-frontends/dib9000.h b/drivers/media/dvb-frontends/dib9000.h
index b5781a48034c..de1cc91fd833 100644
--- a/drivers/media/dvb-frontends/dib9000.h
+++ b/drivers/media/dvb-frontends/dib9000.h
@@ -97,7 +97,7 @@ static inline int dib9000_set_slave_frontend(struct dvb_frontend *fe, struct dvb
97 return -ENODEV; 97 return -ENODEV;
98} 98}
99 99
100int dib9000_remove_slave_frontend(struct dvb_frontend *fe) 100static inline int dib9000_remove_slave_frontend(struct dvb_frontend *fe)
101{ 101{
102 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 102 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
103 return -ENODEV; 103 return -ENODEV;
diff --git a/drivers/media/dvb-frontends/drxd_hard.c b/drivers/media/dvb-frontends/drxd_hard.c
index 6d9853750d2b..e71cc60851e7 100644
--- a/drivers/media/dvb-frontends/drxd_hard.c
+++ b/drivers/media/dvb-frontends/drxd_hard.c
@@ -1748,7 +1748,8 @@ static int DRX_Stop(struct drxd_state *state)
1748 return status; 1748 return status;
1749} 1749}
1750 1750
1751int SetOperationMode(struct drxd_state *state, int oMode) 1751#if 0 /* Currently unused */
1752static int SetOperationMode(struct drxd_state *state, int oMode)
1752{ 1753{
1753 int status; 1754 int status;
1754 1755
@@ -1788,6 +1789,7 @@ int SetOperationMode(struct drxd_state *state, int oMode)
1788 state->operation_mode = oMode; 1789 state->operation_mode = oMode;
1789 return status; 1790 return status;
1790} 1791}
1792#endif
1791 1793
1792static int StartDiversity(struct drxd_state *state) 1794static int StartDiversity(struct drxd_state *state)
1793{ 1795{
@@ -2612,7 +2614,7 @@ static int CDRXD(struct drxd_state *state, u32 IntermediateFrequency)
2612 return 0; 2614 return 0;
2613} 2615}
2614 2616
2615int DRXD_init(struct drxd_state *state, const u8 * fw, u32 fw_size) 2617static int DRXD_init(struct drxd_state *state, const u8 *fw, u32 fw_size)
2616{ 2618{
2617 int status = 0; 2619 int status = 0;
2618 u32 driverVersion; 2620 u32 driverVersion;
@@ -2774,7 +2776,7 @@ int DRXD_init(struct drxd_state *state, const u8 * fw, u32 fw_size)
2774 return status; 2776 return status;
2775} 2777}
2776 2778
2777int DRXD_status(struct drxd_state *state, u32 * pLockStatus) 2779static int DRXD_status(struct drxd_state *state, u32 *pLockStatus)
2778{ 2780{
2779 DRX_GetLockStatus(state, pLockStatus); 2781 DRX_GetLockStatus(state, pLockStatus);
2780 2782
diff --git a/drivers/media/dvb-frontends/drxk_hard.c b/drivers/media/dvb-frontends/drxk_hard.c
index df9abe83f877..c2fc7da0d6bf 100644
--- a/drivers/media/dvb-frontends/drxk_hard.c
+++ b/drivers/media/dvb-frontends/drxk_hard.c
@@ -65,16 +65,6 @@ static bool IsQAM(struct drxk_state *state)
65 state->m_OperationMode == OM_QAM_ITU_C; 65 state->m_OperationMode == OM_QAM_ITU_C;
66} 66}
67 67
68bool IsA1WithPatchCode(struct drxk_state *state)
69{
70 return state->m_DRXK_A1_PATCH_CODE;
71}
72
73bool IsA1WithRomCode(struct drxk_state *state)
74{
75 return state->m_DRXK_A1_ROM_CODE;
76}
77
78#define NOA1ROM 0 68#define NOA1ROM 0
79 69
80#define DRXDAP_FASI_SHORT_FORMAT(addr) (((addr) & 0xFC30FF80) == 0) 70#define DRXDAP_FASI_SHORT_FORMAT(addr) (((addr) & 0xFC30FF80) == 0)
@@ -189,7 +179,7 @@ static inline u32 MulDiv32(u32 a, u32 b, u32 c)
189 return (u32) tmp64; 179 return (u32) tmp64;
190} 180}
191 181
192inline u32 Frac28a(u32 a, u32 c) 182static inline u32 Frac28a(u32 a, u32 c)
193{ 183{
194 int i = 0; 184 int i = 0;
195 u32 Q1 = 0; 185 u32 Q1 = 0;
@@ -587,7 +577,7 @@ static int write_block(struct drxk_state *state, u32 Address,
587#define DRXK_MAX_RETRIES_POWERUP 20 577#define DRXK_MAX_RETRIES_POWERUP 20
588#endif 578#endif
589 579
590int PowerUpDevice(struct drxk_state *state) 580static int PowerUpDevice(struct drxk_state *state)
591{ 581{
592 int status; 582 int status;
593 u8 data = 0; 583 u8 data = 0;
@@ -720,11 +710,6 @@ static int init_state(struct drxk_state *state)
720 710
721 state->m_bPowerDown = (ulPowerDown != 0); 711 state->m_bPowerDown = (ulPowerDown != 0);
722 712
723 state->m_DRXK_A1_PATCH_CODE = false;
724 state->m_DRXK_A1_ROM_CODE = false;
725 state->m_DRXK_A2_ROM_CODE = false;
726 state->m_DRXK_A3_ROM_CODE = false;
727 state->m_DRXK_A2_PATCH_CODE = false;
728 state->m_DRXK_A3_PATCH_CODE = false; 713 state->m_DRXK_A3_PATCH_CODE = false;
729 714
730 /* Init AGC and PGA parameters */ 715 /* Init AGC and PGA parameters */
@@ -921,7 +906,7 @@ static int GetDeviceCapabilities(struct drxk_state *state)
921 status = write16(state, SCU_RAM_GPIO__A, SCU_RAM_GPIO_HW_LOCK_IND_DISABLE); 906 status = write16(state, SCU_RAM_GPIO__A, SCU_RAM_GPIO_HW_LOCK_IND_DISABLE);
922 if (status < 0) 907 if (status < 0)
923 goto error; 908 goto error;
924 status = write16(state, SIO_TOP_COMM_KEY__A, 0xFABA); 909 status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY);
925 if (status < 0) 910 if (status < 0)
926 goto error; 911 goto error;
927 status = read16(state, SIO_PDR_OHW_CFG__A, &sioPdrOhwCfg); 912 status = read16(state, SIO_PDR_OHW_CFG__A, &sioPdrOhwCfg);
@@ -1217,7 +1202,7 @@ static int MPEGTSConfigurePins(struct drxk_state *state, bool mpegEnable)
1217 goto error; 1202 goto error;
1218 1203
1219 /* MPEG TS pad configuration */ 1204 /* MPEG TS pad configuration */
1220 status = write16(state, SIO_TOP_COMM_KEY__A, 0xFABA); 1205 status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY);
1221 if (status < 0) 1206 if (status < 0)
1222 goto error; 1207 goto error;
1223 1208
@@ -5461,6 +5446,7 @@ static int QAMDemodulatorCommand(struct drxk_state *state,
5461 } else { 5446 } else {
5462 printk(KERN_WARNING "drxk: Unknown QAM demodulator parameter " 5447 printk(KERN_WARNING "drxk: Unknown QAM demodulator parameter "
5463 "count %d\n", numberOfParameters); 5448 "count %d\n", numberOfParameters);
5449 status = -EINVAL;
5464 } 5450 }
5465 5451
5466error: 5452error:
diff --git a/drivers/media/dvb-frontends/drxk_hard.h b/drivers/media/dvb-frontends/drxk_hard.h
index 6bb9fc4a7b96..d18a896a9835 100644
--- a/drivers/media/dvb-frontends/drxk_hard.h
+++ b/drivers/media/dvb-frontends/drxk_hard.h
@@ -320,11 +320,7 @@ struct drxk_state {
320 320
321 u8 *m_microcode; 321 u8 *m_microcode;
322 int m_microcode_length; 322 int m_microcode_length;
323 bool m_DRXK_A1_PATCH_CODE; 323 bool m_DRXK_A3_ROM_CODE;
324 bool m_DRXK_A1_ROM_CODE;
325 bool m_DRXK_A2_ROM_CODE;
326 bool m_DRXK_A3_ROM_CODE;
327 bool m_DRXK_A2_PATCH_CODE;
328 bool m_DRXK_A3_PATCH_CODE; 324 bool m_DRXK_A3_PATCH_CODE;
329 325
330 bool m_rfmirror; 326 bool m_rfmirror;
diff --git a/drivers/media/dvb-frontends/ds3000.c b/drivers/media/dvb-frontends/ds3000.c
index 5b639087ce45..60a529e3833f 100644
--- a/drivers/media/dvb-frontends/ds3000.c
+++ b/drivers/media/dvb-frontends/ds3000.c
@@ -30,7 +30,6 @@
30#include "ds3000.h" 30#include "ds3000.h"
31 31
32static int debug; 32static int debug;
33static int force_fw_upload;
34 33
35#define dprintk(args...) \ 34#define dprintk(args...) \
36 do { \ 35 do { \
@@ -234,7 +233,6 @@ struct ds3000_state {
234 struct i2c_adapter *i2c; 233 struct i2c_adapter *i2c;
235 const struct ds3000_config *config; 234 const struct ds3000_config *config;
236 struct dvb_frontend frontend; 235 struct dvb_frontend frontend;
237 u8 skip_fw_load;
238 /* previous uncorrected block counter for DVB-S2 */ 236 /* previous uncorrected block counter for DVB-S2 */
239 u16 prevUCBS2; 237 u16 prevUCBS2;
240}; 238};
@@ -397,9 +395,6 @@ static int ds3000_firmware_ondemand(struct dvb_frontend *fe)
397 if (ret < 0) 395 if (ret < 0)
398 return ret; 396 return ret;
399 397
400 if (state->skip_fw_load || !force_fw_upload)
401 return 0; /* Firmware already uploaded, skipping */
402
403 /* Load firmware */ 398 /* Load firmware */
404 /* request the firmware, this will block until someone uploads it */ 399 /* request the firmware, this will block until someone uploads it */
405 printk(KERN_INFO "%s: Waiting for firmware upload (%s)...\n", __func__, 400 printk(KERN_INFO "%s: Waiting for firmware upload (%s)...\n", __func__,
@@ -413,9 +408,6 @@ static int ds3000_firmware_ondemand(struct dvb_frontend *fe)
413 return ret; 408 return ret;
414 } 409 }
415 410
416 /* Make sure we don't recurse back through here during loading */
417 state->skip_fw_load = 1;
418
419 ret = ds3000_load_firmware(fe, fw); 411 ret = ds3000_load_firmware(fe, fw);
420 if (ret) 412 if (ret)
421 printk("%s: Writing firmware to device failed\n", __func__); 413 printk("%s: Writing firmware to device failed\n", __func__);
@@ -425,9 +417,6 @@ static int ds3000_firmware_ondemand(struct dvb_frontend *fe)
425 dprintk("%s: Firmware upload %s\n", __func__, 417 dprintk("%s: Firmware upload %s\n", __func__,
426 ret == 0 ? "complete" : "failed"); 418 ret == 0 ? "complete" : "failed");
427 419
428 /* Ensure firmware is always loaded if required */
429 state->skip_fw_load = 0;
430
431 return ret; 420 return ret;
432} 421}
433 422
@@ -1309,10 +1298,8 @@ static struct dvb_frontend_ops ds3000_ops = {
1309module_param(debug, int, 0644); 1298module_param(debug, int, 0644);
1310MODULE_PARM_DESC(debug, "Activates frontend debugging (default:0)"); 1299MODULE_PARM_DESC(debug, "Activates frontend debugging (default:0)");
1311 1300
1312module_param(force_fw_upload, int, 0644);
1313MODULE_PARM_DESC(force_fw_upload, "Force firmware upload (default:0)");
1314
1315MODULE_DESCRIPTION("DVB Frontend module for Montage Technology " 1301MODULE_DESCRIPTION("DVB Frontend module for Montage Technology "
1316 "DS3000/TS2020 hardware"); 1302 "DS3000/TS2020 hardware");
1317MODULE_AUTHOR("Konstantin Dimitrov"); 1303MODULE_AUTHOR("Konstantin Dimitrov");
1318MODULE_LICENSE("GPL"); 1304MODULE_LICENSE("GPL");
1305MODULE_FIRMWARE(DS3000_DEFAULT_FIRMWARE);
diff --git a/drivers/media/dvb-frontends/l64781.c b/drivers/media/dvb-frontends/l64781.c
index 36fcf559e361..ddf866c46f8b 100644
--- a/drivers/media/dvb-frontends/l64781.c
+++ b/drivers/media/dvb-frontends/l64781.c
@@ -180,11 +180,11 @@ static int apply_frontend_param(struct dvb_frontend *fe)
180 p->transmission_mode != TRANSMISSION_MODE_8K) 180 p->transmission_mode != TRANSMISSION_MODE_8K)
181 return -EINVAL; 181 return -EINVAL;
182 182
183 if (p->guard_interval < GUARD_INTERVAL_1_32 || 183 if ((int)p->guard_interval < GUARD_INTERVAL_1_32 ||
184 p->guard_interval > GUARD_INTERVAL_1_4) 184 p->guard_interval > GUARD_INTERVAL_1_4)
185 return -EINVAL; 185 return -EINVAL;
186 186
187 if (p->hierarchy < HIERARCHY_NONE || 187 if ((int)p->hierarchy < HIERARCHY_NONE ||
188 p->hierarchy > HIERARCHY_4) 188 p->hierarchy > HIERARCHY_4)
189 return -EINVAL; 189 return -EINVAL;
190 190
diff --git a/drivers/media/dvb-frontends/mt312.c b/drivers/media/dvb-frontends/mt312.c
index e20bf13aa860..ec388c1d6913 100644
--- a/drivers/media/dvb-frontends/mt312.c
+++ b/drivers/media/dvb-frontends/mt312.c
@@ -549,7 +549,7 @@ static int mt312_set_frontend(struct dvb_frontend *fe)
549 || (p->frequency > fe->ops.info.frequency_max)) 549 || (p->frequency > fe->ops.info.frequency_max))
550 return -EINVAL; 550 return -EINVAL;
551 551
552 if ((p->inversion < INVERSION_OFF) 552 if (((int)p->inversion < INVERSION_OFF)
553 || (p->inversion > INVERSION_ON)) 553 || (p->inversion > INVERSION_ON))
554 return -EINVAL; 554 return -EINVAL;
555 555
@@ -557,7 +557,7 @@ static int mt312_set_frontend(struct dvb_frontend *fe)
557 || (p->symbol_rate > fe->ops.info.symbol_rate_max)) 557 || (p->symbol_rate > fe->ops.info.symbol_rate_max))
558 return -EINVAL; 558 return -EINVAL;
559 559
560 if ((p->fec_inner < FEC_NONE) 560 if (((int)p->fec_inner < FEC_NONE)
561 || (p->fec_inner > FEC_AUTO)) 561 || (p->fec_inner > FEC_AUTO))
562 return -EINVAL; 562 return -EINVAL;
563 563
diff --git a/drivers/media/dvb-frontends/rtl2830.c b/drivers/media/dvb-frontends/rtl2830.c
index b0f6ec03d1eb..362d26d11e82 100644
--- a/drivers/media/dvb-frontends/rtl2830.c
+++ b/drivers/media/dvb-frontends/rtl2830.c
@@ -130,7 +130,7 @@ static int rtl2830_rd_reg(struct rtl2830_priv *priv, u16 reg, u8 *val)
130} 130}
131 131
132/* write single register with mask */ 132/* write single register with mask */
133int rtl2830_wr_reg_mask(struct rtl2830_priv *priv, u16 reg, u8 val, u8 mask) 133static int rtl2830_wr_reg_mask(struct rtl2830_priv *priv, u16 reg, u8 val, u8 mask)
134{ 134{
135 int ret; 135 int ret;
136 u8 tmp; 136 u8 tmp;
@@ -150,7 +150,7 @@ int rtl2830_wr_reg_mask(struct rtl2830_priv *priv, u16 reg, u8 val, u8 mask)
150} 150}
151 151
152/* read single register with mask */ 152/* read single register with mask */
153int rtl2830_rd_reg_mask(struct rtl2830_priv *priv, u16 reg, u8 *val, u8 mask) 153static int rtl2830_rd_reg_mask(struct rtl2830_priv *priv, u16 reg, u8 *val, u8 mask)
154{ 154{
155 int ret, i; 155 int ret, i;
156 u8 tmp; 156 u8 tmp;
@@ -256,7 +256,7 @@ static int rtl2830_sleep(struct dvb_frontend *fe)
256 return 0; 256 return 0;
257} 257}
258 258
259int rtl2830_get_tune_settings(struct dvb_frontend *fe, 259static int rtl2830_get_tune_settings(struct dvb_frontend *fe,
260 struct dvb_frontend_tune_settings *s) 260 struct dvb_frontend_tune_settings *s)
261{ 261{
262 s->min_delay_ms = 500; 262 s->min_delay_ms = 500;
diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c
index 80c8e5f1182f..73887690b046 100644
--- a/drivers/media/dvb-frontends/rtl2832.c
+++ b/drivers/media/dvb-frontends/rtl2832.c
@@ -265,7 +265,7 @@ static int rtl2832_rd_reg(struct rtl2832_priv *priv, u8 reg, u8 page, u8 *val)
265 return rtl2832_rd_regs(priv, reg, page, val, 1); 265 return rtl2832_rd_regs(priv, reg, page, val, 1);
266} 266}
267 267
268int rtl2832_rd_demod_reg(struct rtl2832_priv *priv, int reg, u32 *val) 268static int rtl2832_rd_demod_reg(struct rtl2832_priv *priv, int reg, u32 *val)
269{ 269{
270 int ret; 270 int ret;
271 271
@@ -305,7 +305,7 @@ err:
305 305
306} 306}
307 307
308int rtl2832_wr_demod_reg(struct rtl2832_priv *priv, int reg, u32 val) 308static int rtl2832_wr_demod_reg(struct rtl2832_priv *priv, int reg, u32 val)
309{ 309{
310 int ret, i; 310 int ret, i;
311 u8 len; 311 u8 len;
@@ -510,7 +510,7 @@ static int rtl2832_sleep(struct dvb_frontend *fe)
510 return 0; 510 return 0;
511} 511}
512 512
513int rtl2832_get_tune_settings(struct dvb_frontend *fe, 513static int rtl2832_get_tune_settings(struct dvb_frontend *fe,
514 struct dvb_frontend_tune_settings *s) 514 struct dvb_frontend_tune_settings *s)
515{ 515{
516 struct rtl2832_priv *priv = fe->demodulator_priv; 516 struct rtl2832_priv *priv = fe->demodulator_priv;
diff --git a/drivers/media/dvb-frontends/stb0899_drv.c b/drivers/media/dvb-frontends/stb0899_drv.c
index 79e29de87fb7..cc278b3d6d5a 100644
--- a/drivers/media/dvb-frontends/stb0899_drv.c
+++ b/drivers/media/dvb-frontends/stb0899_drv.c
@@ -1260,7 +1260,7 @@ static inline void CONVERT32(u32 x, char *str)
1260 *str = '\0'; 1260 *str = '\0';
1261} 1261}
1262 1262
1263int stb0899_get_dev_id(struct stb0899_state *state) 1263static int stb0899_get_dev_id(struct stb0899_state *state)
1264{ 1264{
1265 u8 chip_id, release; 1265 u8 chip_id, release;
1266 u16 id; 1266 u16 id;
diff --git a/drivers/media/dvb-frontends/stv0367.c b/drivers/media/dvb-frontends/stv0367.c
index 2a8aaeb1112d..0c8e45949b11 100644
--- a/drivers/media/dvb-frontends/stv0367.c
+++ b/drivers/media/dvb-frontends/stv0367.c
@@ -879,7 +879,8 @@ static u8 stv0367_readbits(struct stv0367_state *state, u32 label)
879 return val; 879 return val;
880} 880}
881 881
882u8 stv0367_getbits(u8 reg, u32 label) 882#if 0 /* Currently, unused */
883static u8 stv0367_getbits(u8 reg, u32 label)
883{ 884{
884 u8 mask, pos; 885 u8 mask, pos;
885 886
@@ -887,7 +888,7 @@ u8 stv0367_getbits(u8 reg, u32 label)
887 888
888 return (reg & mask) >> pos; 889 return (reg & mask) >> pos;
889} 890}
890 891#endif
891static int stv0367ter_gate_ctrl(struct dvb_frontend *fe, int enable) 892static int stv0367ter_gate_ctrl(struct dvb_frontend *fe, int enable)
892{ 893{
893 struct stv0367_state *state = fe->demodulator_priv; 894 struct stv0367_state *state = fe->demodulator_priv;
@@ -1263,8 +1264,8 @@ stv0367_ter_signal_type stv0367ter_check_cpamp(struct stv0367_state *state,
1263 return CPAMPStatus; 1264 return CPAMPStatus;
1264} 1265}
1265 1266
1266enum 1267static enum stv0367_ter_signal_type
1267stv0367_ter_signal_type stv0367ter_lock_algo(struct stv0367_state *state) 1268stv0367ter_lock_algo(struct stv0367_state *state)
1268{ 1269{
1269 enum stv0367_ter_signal_type ret_flag; 1270 enum stv0367_ter_signal_type ret_flag;
1270 short int wd, tempo; 1271 short int wd, tempo;
@@ -1528,7 +1529,7 @@ static int stv0367ter_sleep(struct dvb_frontend *fe)
1528 return stv0367ter_standby(fe, 1); 1529 return stv0367ter_standby(fe, 1);
1529} 1530}
1530 1531
1531int stv0367ter_init(struct dvb_frontend *fe) 1532static int stv0367ter_init(struct dvb_frontend *fe)
1532{ 1533{
1533 struct stv0367_state *state = fe->demodulator_priv; 1534 struct stv0367_state *state = fe->demodulator_priv;
1534 struct stv0367ter_state *ter_state = state->ter_state; 1535 struct stv0367ter_state *ter_state = state->ter_state;
@@ -2378,9 +2379,9 @@ static u32 stv0367cab_get_adc_freq(struct dvb_frontend *fe, u32 ExtClk_Hz)
2378 return ADCClk_Hz; 2379 return ADCClk_Hz;
2379} 2380}
2380 2381
2381enum stv0367cab_mod stv0367cab_SetQamSize(struct stv0367_state *state, 2382static enum stv0367cab_mod stv0367cab_SetQamSize(struct stv0367_state *state,
2382 u32 SymbolRate, 2383 u32 SymbolRate,
2383 enum stv0367cab_mod QAMSize) 2384 enum stv0367cab_mod QAMSize)
2384{ 2385{
2385 /* Set QAM size */ 2386 /* Set QAM size */
2386 stv0367_writebits(state, F367CAB_QAM_MODE, QAMSize); 2387 stv0367_writebits(state, F367CAB_QAM_MODE, QAMSize);
@@ -2762,7 +2763,7 @@ static int stv0367cab_sleep(struct dvb_frontend *fe)
2762 return stv0367cab_standby(fe, 1); 2763 return stv0367cab_standby(fe, 1);
2763} 2764}
2764 2765
2765int stv0367cab_init(struct dvb_frontend *fe) 2766static int stv0367cab_init(struct dvb_frontend *fe)
2766{ 2767{
2767 struct stv0367_state *state = fe->demodulator_priv; 2768 struct stv0367_state *state = fe->demodulator_priv;
2768 struct stv0367cab_state *cab_state = state->cab_state; 2769 struct stv0367cab_state *cab_state = state->cab_state;
diff --git a/drivers/media/dvb-frontends/tda10071.c b/drivers/media/dvb-frontends/tda10071.c
index a83bf6802345..16a4bc54dbe7 100644
--- a/drivers/media/dvb-frontends/tda10071.c
+++ b/drivers/media/dvb-frontends/tda10071.c
@@ -96,7 +96,8 @@ static int tda10071_rd_reg(struct tda10071_priv *priv, u8 reg, u8 *val)
96} 96}
97 97
98/* write single register with mask */ 98/* write single register with mask */
99int tda10071_wr_reg_mask(struct tda10071_priv *priv, u8 reg, u8 val, u8 mask) 99static int tda10071_wr_reg_mask(struct tda10071_priv *priv,
100 u8 reg, u8 val, u8 mask)
100{ 101{
101 int ret; 102 int ret;
102 u8 tmp; 103 u8 tmp;
@@ -116,7 +117,8 @@ int tda10071_wr_reg_mask(struct tda10071_priv *priv, u8 reg, u8 val, u8 mask)
116} 117}
117 118
118/* read single register with mask */ 119/* read single register with mask */
119int tda10071_rd_reg_mask(struct tda10071_priv *priv, u8 reg, u8 *val, u8 mask) 120static int tda10071_rd_reg_mask(struct tda10071_priv *priv,
121 u8 reg, u8 *val, u8 mask)
120{ 122{
121 int ret, i; 123 int ret, i;
122 u8 tmp; 124 u8 tmp;
diff --git a/drivers/media/dvb-frontends/tda18271c2dd.c b/drivers/media/dvb-frontends/tda18271c2dd.c
index ad7c72e8f517..d281f77d5c28 100644
--- a/drivers/media/dvb-frontends/tda18271c2dd.c
+++ b/drivers/media/dvb-frontends/tda18271c2dd.c
@@ -32,6 +32,7 @@
32#include <asm/div64.h> 32#include <asm/div64.h>
33 33
34#include "dvb_frontend.h" 34#include "dvb_frontend.h"
35#include "tda18271c2dd.h"
35 36
36struct SStandardParam { 37struct SStandardParam {
37 s32 m_IFFrequency; 38 s32 m_IFFrequency;