Commit bf9025f3 authored by Olli Salonen's avatar Olli Salonen Committed by Mauro Carvalho Chehab

[media] em28xx: initialize si2168_config struct

When new parameters are added for si2168 driver, the parameters have to be explicitly defined for each device if the
si2168_config struct is not initialized to all zeros.
Signed-off-by: default avatarOlli Salonen <olli.salonen@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 251a5c4e
...@@ -1553,6 +1553,7 @@ static int em28xx_dvb_init(struct em28xx *dev) ...@@ -1553,6 +1553,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
struct si2157_config si2157_config; struct si2157_config si2157_config;
/* attach demod */ /* attach demod */
memset(&si2168_config, 0, sizeof(si2168_config));
si2168_config.i2c_adapter = &adapter; si2168_config.i2c_adapter = &adapter;
si2168_config.fe = &dvb->fe[0]; si2168_config.fe = &dvb->fe[0];
si2168_config.ts_mode = SI2168_TS_PARALLEL; si2168_config.ts_mode = SI2168_TS_PARALLEL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment