regulator: Reverse the disable sequence in regulator_bulk_disable()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 25 Jan 2012 11:35:38 +0000 (12:35 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 Jan 2012 11:55:44 +0000 (11:55 +0000)
commit49e226323d462785582750d9f38acca5ffa5dd48
treececbd7af1653230d9d29c3b071d546a44b74d9fe
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
regulator: Reverse the disable sequence in regulator_bulk_disable()

Often there is a need for disabling a set of regulators in order opposite
to the enable order. Currently the function regulator_bulk_disable() walks
list of regulators in same order as regulator_bulk_enable(). This may cause
trouble, especially for devices with mixed analogue and digital circuits.
So reverse the disabling sequence of regulator_bulk_disable().
While at it, also correct the comment.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c
This page took 0.024016 seconds and 5 git commands to generate.