regulator: da9121: Update registration to support multiple buck variants
authorAdam Ward <Adam.Ward.opensource@diasemi.com>
Mon, 30 Nov 2020 16:59:11 +0000 (16:59 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2020 12:18:01 +0000 (12:18 +0000)
commit9929900d1878565a90a70bf25baa7d3e4187ae99
tree4c466a835644132887b5d8b4a863c7794a543f63
parent46c413d5bb239769e6f1de706adf422c807c7a5f
regulator: da9121: Update registration to support multiple buck variants

Add function which iterates the regulator descriptors for the confirmed
variant ID and registers each buck.

Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com>
Link: https://lore.kernel.org/r/1fd53c3ab032ef3c8a92f80a2247381db1c09ced.1606755367.git.Adam.Ward.opensource@diasemi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9121-regulator.c