aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/lgs8gl5.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-08-09 14:29:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:49 -0400
commit3a6b974d37370e89637f870657f93fd859e09ee3 (patch)
tree9657f4695cefbe7f1834df538c4b3b9babbd3496 /drivers/media/dvb/frontends/lgs8gl5.c
parentdfbdce04905d3196c828ca36f01ef06e6fdb2428 (diff)
V4L/DVB (8658): lgs8gl5: fix build warnings
Fix the following build warnings: lgs8gl5.c: In function 'lgs8gl5_read_reg': lgs8gl5.c:95: warning: unused variable 'j' lgs8gl5.c: In function 'lgs8gl5_update_alt_reg': lgs8gl5.c:135: warning: unused variable 'j' lgs8gl5.c: In function 'lgs8gl5_read_ber': lgs8gl5.c:300: warning: unused variable 'state' lgs8gl5.c: In function 'lgs8gl5_read_ucblocks': lgs8gl5.c:332: warning: unused variable 'state' lgs8gl5.c: At top level: lgs8gl5.c:181: warning: 'lgs8gl5_set_inversion' defined but not used Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/lgs8gl5.c')
-rw-r--r--drivers/media/dvb/frontends/lgs8gl5.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/drivers/media/dvb/frontends/lgs8gl5.c b/drivers/media/dvb/frontends/lgs8gl5.c
index c0a223d28b0f..855852fddf22 100644
--- a/drivers/media/dvb/frontends/lgs8gl5.c
+++ b/drivers/media/dvb/frontends/lgs8gl5.c
@@ -92,7 +92,7 @@ lgs8gl5_write_reg(struct lgs8gl5_state *state, u8 reg, u8 data)
92static int 92static int
93lgs8gl5_read_reg(struct lgs8gl5_state *state, u8 reg) 93lgs8gl5_read_reg(struct lgs8gl5_state *state, u8 reg)
94{ 94{
95 int ret, j; 95 int ret;
96 u8 b0[] = {reg}; 96 u8 b0[] = {reg};
97 u8 b1[] = {0}; 97 u8 b1[] = {0};
98 struct i2c_msg msg[2] = { 98 struct i2c_msg msg[2] = {
@@ -132,7 +132,7 @@ lgs8gl5_update_reg(struct lgs8gl5_state *state, u8 reg, u8 data)
132static int 132static int
133lgs8gl5_update_alt_reg(struct lgs8gl5_state *state, u8 reg, u8 data) 133lgs8gl5_update_alt_reg(struct lgs8gl5_state *state, u8 reg, u8 data)
134{ 134{
135 int ret, j; 135 int ret;
136 u8 b0[] = {reg}; 136 u8 b0[] = {reg};
137 u8 b1[] = {0}; 137 u8 b1[] = {0};
138 u8 b2[] = {reg, data}; 138 u8 b2[] = {reg, data};
@@ -176,30 +176,6 @@ lgs8gl5_soft_reset(struct lgs8gl5_state *state)
176} 176}
177 177
178 178
179static int
180lgs8gl5_set_inversion(struct lgs8gl5_state *state, int inversion)
181{
182 u8 val;
183
184 dprintk("%s\n", __func__);
185
186 switch (inversion) {
187 case INVERSION_AUTO:
188 return -EOPNOTSUPP;
189 case INVERSION_ON:
190 val = lgs8gl5_read_reg(state, REG_INVERSION);
191 return lgs8gl5_write_reg(state, REG_INVERSION,
192 val | REG_INVERSION_ON);
193 case INVERSION_OFF:
194 val = lgs8gl5_read_reg(state, REG_INVERSION);
195 return lgs8gl5_write_reg(state, REG_INVERSION,
196 val & ~REG_INVERSION_ON);
197 default:
198 return -EINVAL;
199 }
200}
201
202
203/* Starts demodulation */ 179/* Starts demodulation */
204static void 180static void
205lgs8gl5_start_demod(struct lgs8gl5_state *state) 181lgs8gl5_start_demod(struct lgs8gl5_state *state)
@@ -297,7 +273,6 @@ lgs8gl5_read_status(struct dvb_frontend *fe, fe_status_t *status)
297static int 273static int
298lgs8gl5_read_ber(struct dvb_frontend *fe, u32 *ber) 274lgs8gl5_read_ber(struct dvb_frontend *fe, u32 *ber)
299{ 275{
300 struct lgs8gl5_state *state = fe->demodulator_priv;
301 *ber = 0; 276 *ber = 0;
302 277
303 return 0; 278 return 0;
@@ -329,7 +304,6 @@ lgs8gl5_read_snr(struct dvb_frontend *fe, u16 *snr)
329static int 304static int
330lgs8gl5_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks) 305lgs8gl5_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
331{ 306{
332 struct lgs8gl5_state *state = fe->demodulator_priv;
333 *ucblocks = 0; 307 *ucblocks = 0;
334 308
335 return 0; 309 return 0;