Skip to content

Commit fbc102f

Browse files
AxelLinbroonie
authored andcommitted
regulator: mt6315: Return REGULATOR_MODE_INVALID for invalid mode
-EINVAL is not a valid return value for .of_map_mode, return REGULATOR_MODE_INVALID instead. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210215034813.45510-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent a38fd87 commit fbc102f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/mt6315-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static unsigned int mt6315_map_mode(u32 mode)
6969
case MT6315_BUCK_MODE_LP:
7070
return REGULATOR_MODE_IDLE;
7171
default:
72-
return -EINVAL;
72+
return REGULATOR_MODE_INVALID;
7373
}
7474
}
7575

0 commit comments

Comments
 (0)