mfd: marvell: Constify struct mfd_cell where possible
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 18 Nov 2013 13:32:59 +0000 (14:32 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 6 Jan 2014 09:13:26 +0000 (09:13 +0000)
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>
drivers/mfd/88pm800.c
drivers/mfd/88pm805.c

index a65447d65605fe7d7539082322a70cceae9c18c7..7dca1e640970a0dfb7f28ad8909c1f3e4d7d26e4 100644 (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",
         .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",
         .id = -1,
index 8a5b6ffb5afb6fbedbd8a1364a879890a6ebfba5..64751c2a1ace8fc2f90e59c1a1ca404776aa04d0 100644 (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",
         .num_resources = ARRAY_SIZE(codec_resources),