Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113825
b: refs/heads/master
c: 3a6b974
h: refs/heads/master
i:
  113823: 230cc34
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent fa3619e commit 0285b0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dfbdce04905d3196c828ca36f01ef06e6fdb2428
refs/heads/master: 3a6b974d37370e89637f870657f93fd859e09ee3
30 changes: 2 additions & 28 deletions trunk/drivers/media/dvb/frontends/lgs8gl5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down Expand Up @@ -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};
Expand Down Expand Up @@ -176,30 +176,6 @@ lgs8gl5_soft_reset(struct lgs8gl5_state *state)
}


static int
lgs8gl5_set_inversion(struct lgs8gl5_state *state, int inversion)
{
u8 val;

dprintk("%s\n", __func__);

switch (inversion) {
case INVERSION_AUTO:
return -EOPNOTSUPP;
case INVERSION_ON:
val = lgs8gl5_read_reg(state, REG_INVERSION);
return lgs8gl5_write_reg(state, REG_INVERSION,
val | REG_INVERSION_ON);
case INVERSION_OFF:
val = lgs8gl5_read_reg(state, REG_INVERSION);
return lgs8gl5_write_reg(state, REG_INVERSION,
val & ~REG_INVERSION_ON);
default:
return -EINVAL;
}
}


/* Starts demodulation */
static void
lgs8gl5_start_demod(struct lgs8gl5_state *state)
Expand Down Expand Up @@ -297,7 +273,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;
Expand Down Expand Up @@ -329,7 +304,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;
Expand Down

0 comments on commit 0285b0f

Please sign in to comment.