regulator: da9062: Simplify the code iterating all regulators
authorAxel Lin <axel.lin@ingics.com>
Mon, 7 Oct 2019 11:50:08 +0000 (19:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Oct 2019 12:54:20 +0000 (13:54 +0100)
commit151b03791e4acb09bb9a9af2a87bca1240937d6c
treec24dfaf7557e4c2ac80120cb2c325718e5306971
parent75bb518e9bbf666a851cd43a9aba8e085b5008d8
regulator: da9062: Simplify the code iterating all regulators

It's more straightforward to use for statement here.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Link: https://lore.kernel.org/r/20191007115009.25672-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9062-regulator.c