projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f114040
)
regulator: dummy: Make regulator_desc array const
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 27 Oct 2014 15:44:11 +0000
(16:44 +0100)
committer
Mark Brown
<broonie@kernel.org>
Tue, 28 Oct 2014 00:01:44 +0000
(
00:01
+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/dummy.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/dummy.c
b/drivers/regulator/dummy.c
index 2436db9e2ca35f60875ab56cc825050c0d6a3ff2..7aef9e4c6fbf60d47bf7812918d48042c6045637 100644
(file)
--- a/
drivers/regulator/dummy.c
+++ b/
drivers/regulator/dummy.c
@@
-33,7
+33,7
@@
static struct regulator_init_data dummy_initdata = {
static struct regulator_ops dummy_ops;
-static struct regulator_desc dummy_desc = {
+static
const
struct regulator_desc dummy_desc = {
.name = "regulator-dummy",
.id = -1,
.type = REGULATOR_VOLTAGE,