aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps65023-regulator.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2018-09-03 16:49:36 +0200
committerMark Brown <broonie@kernel.org>2018-09-03 16:11:04 +0100
commitcd7e36ab7222af85597517bafd66013cbc8f9877 (patch)
treea385e7d445919363fd3152c9bbf4ae865a88fcd9 /drivers/regulator/tps65023-regulator.c
parentregulator: qcom-rpmh: Add stylistic breaks in the default cases (diff)
downloadlinux-dev-cd7e36ab7222af85597517bafd66013cbc8f9877.tar.xz
linux-dev-cd7e36ab7222af85597517bafd66013cbc8f9877.zip
regulator: Fix useless O^2 complexity in suspend/resume
regulator_pm_ops with regulator_suspend and regulator_resume functions are assigned to every regulator device registered in the system, so there is no need to iterate over all again in them. Replace class_for_each_device() construction with direct operation on the rdev embedded in the given regulator device. This saves a lots of useless operations in suspend and resume paths. Fixes: f7efad10b5c4: regulator: add PM suspend and resume hooks Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/tps65023-regulator.c')
0 files changed, 0 insertions, 0 deletions