eeprom: at24: make struct initialization uniform in at24_probe()
When zeroing structs, use "{ }" everywhere. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c4fee330f9
commit
53998fa89a
@ -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;
|
||||
|
Reference in New Issue
Block a user