regulator: core: Keep regulators-list locked while traversing the list
authorDmitry Osipenko <digetx@gmail.com>
Sun, 18 Nov 2018 21:56:19 +0000 (00:56 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Nov 2018 12:33:19 +0000 (12:33 +0000)
commitff9b34b615a37a3f4d359bf82fc97f5e0310b301
tree404096f94c7b7c1cc0167040e6db0bf60929a759
parent089e2cc2e1861ad13a56811aa538419989346089
regulator: core: Keep regulators-list locked while traversing the list

It's unlikely that regulators may disappear/appear while regulators
debug-summary is being prepared, but let's be consistent and avoid that
situation.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c