diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-18 08:32:59 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-06 04:13:26 -0500 |
commit | 04e02417306efea1d2702f8f67b4d4ae66c298b4 (patch) | |
tree | 1f31f22f627d3df1d2ac710ff2b1682e3717b226 | |
parent | afb580a944ce9fe8c31f96623ded7bb4b87412d3 (diff) |
mfd: marvell: 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>
-rw-r--r-- | drivers/mfd/88pm800.c | 4 | ||||
-rw-r--r-- | drivers/mfd/88pm805.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index a65447d65605..7dca1e640970 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers/mfd/88pm800.c | |||
@@ -148,7 +148,7 @@ static struct resource onkey_resources[] = { | |||
148 | }, | 148 | }, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | static struct mfd_cell onkey_devs[] = { | 151 | static const struct mfd_cell onkey_devs[] = { |
152 | { | 152 | { |
153 | .name = "88pm80x-onkey", | 153 | .name = "88pm80x-onkey", |
154 | .num_resources = 1, | 154 | .num_resources = 1, |
@@ -157,7 +157,7 @@ static struct mfd_cell onkey_devs[] = { | |||
157 | }, | 157 | }, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | static struct mfd_cell regulator_devs[] = { | 160 | static const struct mfd_cell regulator_devs[] = { |
161 | { | 161 | { |
162 | .name = "88pm80x-regulator", | 162 | .name = "88pm80x-regulator", |
163 | .id = -1, | 163 | .id = -1, |
diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index 8a5b6ffb5afb..64751c2a1ace 100644 --- a/drivers/mfd/88pm805.c +++ b/drivers/mfd/88pm805.c | |||
@@ -77,7 +77,7 @@ static struct resource codec_resources[] = { | |||
77 | }, | 77 | }, |
78 | }; | 78 | }; |
79 | 79 | ||
80 | static struct mfd_cell codec_devs[] = { | 80 | static const struct mfd_cell codec_devs[] = { |
81 | { | 81 | { |
82 | .name = "88pm80x-codec", | 82 | .name = "88pm80x-codec", |
83 | .num_resources = ARRAY_SIZE(codec_resources), | 83 | .num_resources = ARRAY_SIZE(codec_resources), |