OSDN Git Service

regulator: max14577: Reduce duplication of regulator_desc initializers
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Sat, 18 Apr 2015 11:27:17 +0000 (20:27 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 17:57:57 +0000 (18:57 +0100)
commitcab344d3417b5fa56c0f92303bac60e48032b026
treec941e344fa130e1ce88330b9a413f358d8eaa3c6
parentb787f68c36d49bb1d9236f403813641efa74a031
regulator: max14577: Reduce duplication of regulator_desc initializers

Replace duplicated initializers in arrays of struct 'regulator_desc'
with macro. Generated object is the same but each type of regulator is
described only once.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max14577.c