Home
last modified time | relevance | path

Searched hist:d83aef13 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/regulator/
H A Dmax1586.cd83aef13 Mon Nov 03 08:40:40 CST 2014 Javier Martinez Canillas <javier.martinez@collabora.co.uk> regulator: max1586: zero-initialize regulator match table array

The struct of_regulator_match rmatch[] is declared as a non-static local
variable so the structure members are not auto-initialized.

Initialize the array at declaration time to avoid the structure members
values to be indeterminate and have sane defaults instead.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
d83aef13 Mon Nov 03 08:40:40 CST 2014 Javier Martinez Canillas <javier.martinez@collabora.co.uk> regulator: max1586: zero-initialize regulator match table array

The struct of_regulator_match rmatch[] is declared as a non-static local
variable so the structure members are not auto-initialized.

Initialize the array at declaration time to avoid the structure members
values to be indeterminate and have sane defaults instead.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>