projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a38fd87
)
regulator: mt6315: Return REGULATOR_MODE_INVALID for invalid mode
author
Axel Lin
<axel.lin@ingics.com>
Mon, 15 Feb 2021 03:48:13 +0000
(11:48 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Mar 2021 12:22:22 +0000
(12:22 +0000)
-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>
drivers/regulator/mt6315-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/mt6315-regulator.c
b/drivers/regulator/mt6315-regulator.c
index d49a1534d8e91c5b34ae93f639fb0257b10636a5..fc7654624dd687248c4651e0fdf3cfd5526a69cf 100644
(file)
--- a/
drivers/regulator/mt6315-regulator.c
+++ b/
drivers/regulator/mt6315-regulator.c
@@
-69,7
+69,7
@@
static unsigned int mt6315_map_mode(u32 mode)
case MT6315_BUCK_MODE_LP:
return REGULATOR_MODE_IDLE;
default:
- return
-EINVAL
;
+ return
REGULATOR_MODE_INVALID
;
}
}