Skip to content

Commit 72241e3

Browse files
initBastibroonie
authored andcommitted
regulator: core.c: Improve a comment
s/regulator may on/regulator may already be enabled/ s/or left on/or was left on/ The aim of this patch is to make the comment more readable and to make it clear, that this is about a regulator, that is already enabled instead of a regulator that may be switched on. Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net> Link: https://lore.kernel.org/r/20210421055236.13148-1-sebastian.fricke@posteo.net Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8a065ce commit 72241e3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/regulator/core.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2654,7 +2654,10 @@ static int _regulator_enable(struct regulator *regulator)
26542654
goto err_disable_supply;
26552655

26562656
if (rdev->use_count == 0) {
2657-
/* The regulator may on if it's not switchable or left on */
2657+
/*
2658+
* The regulator may already be enabled if it's not switchable
2659+
* or was left on
2660+
*/
26582661
ret = _regulator_is_enabled(rdev);
26592662
if (ret == -EINVAL || ret == 0) {
26602663
if (!regulator_ops_is_valid(rdev,

0 commit comments

Comments
 (0)