diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2018-03-19 10:17:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-23 16:25:00 +0100 |
commit | 53998fa89a5bfa16d279f48dac3a99e4bd0d0dd6 (patch) | |
tree | 40da9027f05e893c49521e0f22b1c9e91b22d170 /drivers/misc/eeprom/at24.c | |
parent | c4fee330f9402878e6e4c6d21f8d42e3ead37c5b (diff) | |
download | linux-53998fa89a5bfa16d279f48dac3a99e4bd0d0dd6.tar.bz2 |
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>
Diffstat (limited to 'drivers/misc/eeprom/at24.c')
-rw-r--r-- | drivers/misc/eeprom/at24.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 2d8f36c6c3d4..001d784995d8 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; |