diff options
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lgdt3302.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgdt3302.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302.c b/linux/drivers/media/dvb/frontends/lgdt3302.c index c3b8d4e08..b153da47c 100644 --- a/linux/drivers/media/dvb/frontends/lgdt3302.c +++ b/linux/drivers/media/dvb/frontends/lgdt3302.c @@ -291,13 +291,11 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe, /* Change only if we are actually changing the channel */ if (state->current_frequency != param->frequency) { u8 buf[5]; + struct i2c_msg msg = { .flags = 0, .buf = &buf[1], .len = 4 }; + int err; - /* This must be done before the initialized msg is declared */ state->config->pll_set(fe, param, buf); - - struct i2c_msg msg = - { .addr = buf[0], .flags = 0, .buf = &buf[1], .len = 4 }; - int err; + msg.addr = buf[0]; dprintk("%s: tuner at 0x%02x bytes: 0x%02x 0x%02x " "0x%02x 0x%02x\n", __FUNCTION__, |