projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f114040
)
regulator: max77693: Make regulator_desc array const
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 27 Oct 2014 15:44:12 +0000
(16:44 +0100)
committer
Mark Brown
<broonie@kernel.org>
Tue, 28 Oct 2014 00:02:30 +0000
(
00:02
+0000)
The regulator_register() expects array of 'regulator_desc' to be const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77693.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/max77693.c
b/drivers/regulator/max77693.c
index c67ff05fc1dd1354cd0a72601f31b407f99638ad..177dd9d2ce6778359828f07578e773200178ae20 100644
(file)
--- a/
drivers/regulator/max77693.c
+++ b/
drivers/regulator/max77693.c
@@
-139,7
+139,7
@@
static struct regulator_ops max77693_charger_ops = {
.enable_mask = SAFEOUT_CTRL_ENSAFEOUT##_num##_MASK , \
}
-static struct regulator_desc regulators[] = {
+static
const
struct regulator_desc regulators[] = {
regulator_desc_esafeout(1),
regulator_desc_esafeout(2),
{