From: Bartosz Golaszewski Date: Mon, 19 Mar 2018 09:17:08 +0000 (+0100) Subject: eeprom: at24: make struct initialization uniform in at24_probe() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=53998fa89a5bfa16d279f48dac3a99e4bd0d0dd6;p=linux.git eeprom: at24: make struct initialization uniform in at24_probe() When zeroing structs, use "{ }" everywhere. Signed-off-by: Bartosz Golaszewski Tested-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 2d8f36c6c3d40..001d784995d89 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -518,7 +518,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id) struct regmap_config regmap_config = { }; struct nvmem_config nvmem_config = { }; const struct at24_chip_data *cd = NULL; - struct at24_platform_data chip = { 0 }; + struct at24_platform_data chip = { }; unsigned int i, num_addresses; struct at24_data *at24; bool writable;