[media] cxusb: Prepare for si2157 driver getting more parameters
authorMatthias Schwarzott <zzam@gentoo.org>
Tue, 15 Jul 2014 19:34:34 +0000 (16:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 00:28:10 +0000 (21:28 -0300)
Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/dvb-usb/cxusb.c

index d60e36d5103a7833ff14004f9cee46fb34ef8005..b7461ac1ce741b26f3bd8b75d231199dd1c3951a 100644 (file)
@@ -1386,6 +1386,7 @@ static int cxusb_tt_ct2_4400_attach(struct dvb_usb_adapter *adap)
        st->i2c_client_demod = client_demod;
 
        /* attach tuner */
+       memset(&si2157_config, 0, sizeof(si2157_config));
        si2157_config.fe = adap->fe_adap[0].fe;
        memset(&info, 0, sizeof(struct i2c_board_info));
        strlcpy(info.type, "si2157", I2C_NAME_SIZE);