diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-18 08:33:06 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-06 04:13:29 -0500 |
commit | 5ac98553afe41ffb5513fa8aac6df699a70231a3 (patch) | |
tree | 98ce7a973aa86184d1c4dc17a758dcd1534fc1bd /drivers/mfd/sec-core.c | |
parent | 2977dc92e437f888974b2e9fe37c95dd29e2b62a (diff) |
mfd: Constify struct mfd_cell where possible
As of commit 03e361b25ee8dfb1fd9b890072c23c4aae01c6c7 ("mfd: Stop setting
refcounting pointers in original mfd_cell arrays"), the "cell" parameter of
mfd_add_devices() is "const" again. Hence make all cell data passed to
mfd_add_devices() const where possible.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sec-core.c')
-rw-r--r-- | drivers/mfd/sec-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 54cc25546592..b31824c33e15 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/mfd/samsung/s5m8767.h> | 31 | #include <linux/mfd/samsung/s5m8767.h> |
32 | #include <linux/regmap.h> | 32 | #include <linux/regmap.h> |
33 | 33 | ||
34 | static struct mfd_cell s5m8751_devs[] = { | 34 | static const struct mfd_cell s5m8751_devs[] = { |
35 | { | 35 | { |
36 | .name = "s5m8751-pmic", | 36 | .name = "s5m8751-pmic", |
37 | }, { | 37 | }, { |
@@ -41,7 +41,7 @@ static struct mfd_cell s5m8751_devs[] = { | |||
41 | }, | 41 | }, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static struct mfd_cell s5m8763_devs[] = { | 44 | static const struct mfd_cell s5m8763_devs[] = { |
45 | { | 45 | { |
46 | .name = "s5m8763-pmic", | 46 | .name = "s5m8763-pmic", |
47 | }, { | 47 | }, { |
@@ -51,7 +51,7 @@ static struct mfd_cell s5m8763_devs[] = { | |||
51 | }, | 51 | }, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | static struct mfd_cell s5m8767_devs[] = { | 54 | static const struct mfd_cell s5m8767_devs[] = { |
55 | { | 55 | { |
56 | .name = "s5m8767-pmic", | 56 | .name = "s5m8767-pmic", |
57 | }, { | 57 | }, { |
@@ -59,7 +59,7 @@ static struct mfd_cell s5m8767_devs[] = { | |||
59 | }, | 59 | }, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static struct mfd_cell s2mps11_devs[] = { | 62 | static const struct mfd_cell s2mps11_devs[] = { |
63 | { | 63 | { |
64 | .name = "s2mps11-pmic", | 64 | .name = "s2mps11-pmic", |
65 | }, { | 65 | }, { |