diff options
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgdt330x.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.c b/linux/drivers/media/dvb/frontends/lgdt330x.c index 0e21ef1d2..58bad7338 100644 --- a/linux/drivers/media/dvb/frontends/lgdt330x.c +++ b/linux/drivers/media/dvb/frontends/lgdt330x.c @@ -229,12 +229,12 @@ static int lgdt330x_init(struct dvb_frontend* fe) chip_name = "LGDT3302"; err = i2c_write_demod_bytes(state, lgdt3302_init_data, sizeof(lgdt3302_init_data)); - break; + break; case LGDT3303: chip_name = "LGDT3303"; err = i2c_write_demod_bytes(state, lgdt3303_init_data, sizeof(lgdt3303_init_data)); - break; + break; default: chip_name = "undefined"; printk (KERN_WARNING "Only LGDT3302 and LGDT3303 are supported chips.\n"); @@ -257,22 +257,22 @@ static int lgdt330x_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks) struct lgdt330x_state* state = fe->demodulator_priv; int err; u8 buf[2]; - + switch (state->config->demod_chip) { case LGDT3302: err = i2c_read_demod_bytes(state, LGDT3302_PACKET_ERR_COUNTER1, buf, sizeof(buf)); - break; + break; case LGDT3303: err = i2c_read_demod_bytes(state, LGDT3303_PACKET_ERR_COUNTER1, buf, sizeof(buf)); - break; + break; default: printk(KERN_WARNING "Only LGDT3302 and LGDT3303 are supported chips.\n"); err = -ENODEV; } - + *ucblocks = (buf[0] << 8) | buf[1]; return 0; } |