diff options
author | Brad Love <brad@nextdimension.cc> | 2018-05-03 17:20:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-05 08:23:55 -0400 |
commit | 2fb579bb10391f62e9ebebddc356a9c9020fb621 (patch) | |
tree | f5dbb7f40d94e5b154ccf90add9dd3b06893873b | |
parent | af1b4c35a7dc040d0d97deed6cc2a72313ae11c4 (diff) |
media: cx231xx: Style fix for struct zero init
Replace zero fill memset inits with
equivalent {} in declaration
Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-dvb.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c index 146b8531655b..18be20ba8309 100644 --- a/drivers/media/usb/cx231xx/cx231xx-dvb.c +++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c @@ -791,10 +791,9 @@ static int dvb_init(struct cx231xx *dev) { struct i2c_client *client; struct i2c_board_info info; - struct si2165_platform_data si2165_pdata; + struct si2165_platform_data si2165_pdata = {}; /* attach demod */ - memset(&si2165_pdata, 0, sizeof(si2165_pdata)); si2165_pdata.fe = &dev->dvb->frontend[0]; si2165_pdata.chip_mode = SI2165_MODE_PLL_XTAL; si2165_pdata.ref_freq_hz = 16000000; @@ -836,11 +835,10 @@ static int dvb_init(struct cx231xx *dev) { struct i2c_client *client; struct i2c_board_info info; - struct si2165_platform_data si2165_pdata; - struct si2157_config si2157_config; + struct si2165_platform_data si2165_pdata = {}; + struct si2157_config si2157_config = {}; /* attach demod */ - memset(&si2165_pdata, 0, sizeof(si2165_pdata)); si2165_pdata.fe = &dev->dvb->frontend[0]; si2165_pdata.chip_mode = SI2165_MODE_PLL_EXT; si2165_pdata.ref_freq_hz = 24000000; @@ -874,7 +872,6 @@ static int dvb_init(struct cx231xx *dev) dvb->frontend[0]->callback = cx231xx_tuner_callback; /* attach tuner */ - memset(&si2157_config, 0, sizeof(si2157_config)); si2157_config.fe = dev->dvb->frontend[0]; #ifdef CONFIG_MEDIA_CONTROLLER_DVB si2157_config.mdev = dev->media_dev; @@ -911,7 +908,7 @@ static int dvb_init(struct cx231xx *dev) { struct i2c_client *client; struct i2c_board_info info; - struct si2157_config si2157_config; + struct si2157_config si2157_config = {}; memset(&info, 0, sizeof(struct i2c_board_info)); @@ -933,7 +930,6 @@ static int dvb_init(struct cx231xx *dev) dvb->frontend[0]->callback = cx231xx_tuner_callback; /* attach tuner */ - memset(&si2157_config, 0, sizeof(si2157_config)); si2157_config.fe = dev->dvb->frontend[0]; #ifdef CONFIG_MEDIA_CONTROLLER_DVB si2157_config.mdev = dev->media_dev; |