mfd: marvell: Constify struct mfd_cell where possible

As of commit 03e361b25e ("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>
This commit is contained in:
Geert Uytterhoeven 2013-11-18 14:32:59 +01:00 committed by Lee Jones
parent afb580a944
commit 04e0241730
2 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ static struct resource onkey_resources[] = {
}, },
}; };
static struct mfd_cell onkey_devs[] = { static const struct mfd_cell onkey_devs[] = {
{ {
.name = "88pm80x-onkey", .name = "88pm80x-onkey",
.num_resources = 1, .num_resources = 1,
@ -157,7 +157,7 @@ static struct mfd_cell onkey_devs[] = {
}, },
}; };
static struct mfd_cell regulator_devs[] = { static const struct mfd_cell regulator_devs[] = {
{ {
.name = "88pm80x-regulator", .name = "88pm80x-regulator",
.id = -1, .id = -1,

View File

@ -77,7 +77,7 @@ static struct resource codec_resources[] = {
}, },
}; };
static struct mfd_cell codec_devs[] = { static const struct mfd_cell codec_devs[] = {
{ {
.name = "88pm80x-codec", .name = "88pm80x-codec",
.num_resources = ARRAY_SIZE(codec_resources), .num_resources = ARRAY_SIZE(codec_resources),