]> Pileus Git - ~andy/linux/commitdiff
mfd: toshiba: Constify struct mfd_cell where possible
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 18 Nov 2013 13:33:03 +0000 (14:33 +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/tc3589x.c
drivers/mfd/tc6387xb.c

index 87ea51dc6234a243021bce1682a213856c49128b..2cf636c267d9413f77e39d787b6a47496ce1859e 100644 (file)
@@ -155,7 +155,7 @@ static struct resource keypad_resources[] = {
        },
 };
 
-static struct mfd_cell tc3589x_dev_gpio[] = {
+static const struct mfd_cell tc3589x_dev_gpio[] = {
        {
                .name           = "tc3589x-gpio",
                .num_resources  = ARRAY_SIZE(gpio_resources),
@@ -164,7 +164,7 @@ static struct mfd_cell tc3589x_dev_gpio[] = {
        },
 };
 
-static struct mfd_cell tc3589x_dev_keypad[] = {
+static const struct mfd_cell tc3589x_dev_keypad[] = {
        {
                .name           = "tc3589x-keypad",
                .num_resources  = ARRAY_SIZE(keypad_resources),
index acd0f3a41044a5171cc0cfde9d03ad693fa9f48c..591a331d8d83b147fbc10fa23351d61a05aeaf9e 100644 (file)
@@ -126,7 +126,7 @@ static struct tmio_mmc_data tc6387xb_mmc_data = {
 
 /*--------------------------------------------------------------------------*/
 
-static struct mfd_cell tc6387xb_cells[] = {
+static const struct mfd_cell tc6387xb_cells[] = {
        [TC6387XB_CELL_MMC] = {
                .name = "tmio-mmc",
                .enable = tc6387xb_mmc_enable,