if (ret == 1) {
ret = 0;
} else {
- dev_warn(&state->i2c->dev, "%s: i2c wr failed=%d reg=%06x " \
- "len=%d\n", KBUILD_MODNAME, ret, reg, len);
+ dev_warn(&state->i2c->dev,
+ "%s: i2c wr failed=%d reg=%06x len=%d\n",
+ KBUILD_MODNAME, ret, reg, len);
ret = -EREMOTEIO;
}
if (ret == 2) {
ret = 0;
} else {
- dev_warn(&state->i2c->dev, "%s: i2c rd failed=%d reg=%06x " \
- "len=%d\n", KBUILD_MODNAME, ret, reg, len);
+ dev_warn(&state->i2c->dev,
+ "%s: i2c rd failed=%d reg=%06x len=%d\n",
+ KBUILD_MODNAME, ret, reg, len);
ret = -EREMOTEIO;
}
int ret, i, len;
u8 buf[3], tmp;
u32 snr_val;
- const struct val_snr *uninitialized_var(snr_lut);
+ const struct val_snr *snr_lut;
/* read value */
ret = af9033_rd_regs(state, 0x80002c, buf, 3);
abort_cnt = 1000;
state->ber = 0xffffffff;
} else {
- /* 8 byte packets, that have not been rejected already */
+ /*
+ * 8 byte packets, that have not been rejected already
+ */
bit_cnt -= (u32)abort_cnt;
if (bit_cnt == 0) {
state->ber = 0xffffffff;
return ret;
}
-static int af9033_pid_filter(struct dvb_frontend *fe, int index, u16 pid, int onoff)
+static int af9033_pid_filter(struct dvb_frontend *fe, int index, u16 pid,
+ int onoff)
{
struct af9033_state *state = fe->demodulator_priv;
int ret;
memcpy(&state->cfg, config, sizeof(struct af9033_config));
if (state->cfg.clock != 12000000) {
- dev_err(&state->i2c->dev, "%s: af9033: unsupported clock=%d, " \
- "only 12000000 Hz is supported currently\n",
+ dev_err(&state->i2c->dev,
+ "%s: af9033: unsupported clock=%d, only 12000000 Hz is supported currently\n",
KBUILD_MODNAME, state->cfg.clock);
goto err;
}
if (ret < 0)
goto err;
- dev_info(&state->i2c->dev, "%s: firmware version: LINK=%d.%d.%d.%d " \
- "OFDM=%d.%d.%d.%d\n", KBUILD_MODNAME, buf[0], buf[1],
- buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]);
+ dev_info(&state->i2c->dev,
+ "%s: firmware version: LINK=%d.%d.%d.%d OFDM=%d.%d.%d.%d\n",
+ KBUILD_MODNAME, buf[0], buf[1], buf[2], buf[3], buf[4],
+ buf[5], buf[6], buf[7]);
/* sleep */
switch (state->cfg.tuner) {