diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-08-09 14:29:46 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-08-09 14:29:46 -0400 |
commit | 7fd7d21d543d90ecf1086f9c5909bd4c01cf69ae (patch) | |
tree | 533f741ab8ea50c04945df6d07d8e41e3b0e84be /linux | |
parent | a09ed3d987422da2f6d14fc6e7efa295c1312629 (diff) | |
download | mediapointer-dvb-s2-7fd7d21d543d90ecf1086f9c5909bd4c01cf69ae.tar.gz mediapointer-dvb-s2-7fd7d21d543d90ecf1086f9c5909bd4c01cf69ae.tar.bz2 |
lgs8gl5: fix build warnings
From: Michael Krufky <mkrufky@linuxtv.org>
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
Priority: normal
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgs8gl5.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgs8gl5.c b/linux/drivers/media/dvb/frontends/lgs8gl5.c index c0a223d28..380ae1868 100644 --- a/linux/drivers/media/dvb/frontends/lgs8gl5.c +++ b/linux/drivers/media/dvb/frontends/lgs8gl5.c @@ -92,7 +92,7 @@ lgs8gl5_write_reg(struct lgs8gl5_state *state, u8 reg, u8 data) static int lgs8gl5_read_reg(struct lgs8gl5_state *state, u8 reg) { - int ret, j; + int ret; u8 b0[] = {reg}; u8 b1[] = {0}; struct i2c_msg msg[2] = { @@ -132,7 +132,7 @@ lgs8gl5_update_reg(struct lgs8gl5_state *state, u8 reg, u8 data) static int lgs8gl5_update_alt_reg(struct lgs8gl5_state *state, u8 reg, u8 data) { - int ret, j; + int ret; u8 b0[] = {reg}; u8 b1[] = {0}; u8 b2[] = {reg, data}; @@ -175,7 +175,7 @@ lgs8gl5_soft_reset(struct lgs8gl5_state *state) msleep(5); } - +#if 0 static int lgs8gl5_set_inversion(struct lgs8gl5_state *state, int inversion) { @@ -198,7 +198,7 @@ lgs8gl5_set_inversion(struct lgs8gl5_state *state, int inversion) return -EINVAL; } } - +#endif /* Starts demodulation */ static void @@ -297,7 +297,6 @@ lgs8gl5_read_status(struct dvb_frontend *fe, fe_status_t *status) static int lgs8gl5_read_ber(struct dvb_frontend *fe, u32 *ber) { - struct lgs8gl5_state *state = fe->demodulator_priv; *ber = 0; return 0; @@ -329,7 +328,6 @@ lgs8gl5_read_snr(struct dvb_frontend *fe, u16 *snr) static int lgs8gl5_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks) { - struct lgs8gl5_state *state = fe->demodulator_priv; *ucblocks = 0; return 0; |