diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-18 08:33:00 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-06 04:13:27 -0500 |
commit | 7c0517b1716bc1aa873064290401a8ce2fbabc32 (patch) | |
tree | ea36b5a5758447f3a060c5c9cf7471ad6b2d7112 /drivers/mfd/max8925-core.c | |
parent | 04e02417306efea1d2702f8f67b4d4ae66c298b4 (diff) |
mfd: maxim: 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/max8925-core.c')
-rw-r--r-- | drivers/mfd/max8925-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.c index f0cc40296d8c..f3faf0c45ddd 100644 --- a/drivers/mfd/max8925-core.c +++ b/drivers/mfd/max8925-core.c | |||
@@ -45,7 +45,7 @@ static struct resource touch_resources[] = { | |||
45 | }, | 45 | }, |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static struct mfd_cell touch_devs[] = { | 48 | static const struct mfd_cell touch_devs[] = { |
49 | { | 49 | { |
50 | .name = "max8925-touch", | 50 | .name = "max8925-touch", |
51 | .num_resources = 1, | 51 | .num_resources = 1, |
@@ -63,7 +63,7 @@ static struct resource power_supply_resources[] = { | |||
63 | }, | 63 | }, |
64 | }; | 64 | }; |
65 | 65 | ||
66 | static struct mfd_cell power_devs[] = { | 66 | static const struct mfd_cell power_devs[] = { |
67 | { | 67 | { |
68 | .name = "max8925-power", | 68 | .name = "max8925-power", |
69 | .num_resources = 1, | 69 | .num_resources = 1, |
@@ -81,7 +81,7 @@ static struct resource rtc_resources[] = { | |||
81 | }, | 81 | }, |
82 | }; | 82 | }; |
83 | 83 | ||
84 | static struct mfd_cell rtc_devs[] = { | 84 | static const struct mfd_cell rtc_devs[] = { |
85 | { | 85 | { |
86 | .name = "max8925-rtc", | 86 | .name = "max8925-rtc", |
87 | .num_resources = 1, | 87 | .num_resources = 1, |
@@ -104,7 +104,7 @@ static struct resource onkey_resources[] = { | |||
104 | }, | 104 | }, |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static struct mfd_cell onkey_devs[] = { | 107 | static const struct mfd_cell onkey_devs[] = { |
108 | { | 108 | { |
109 | .name = "max8925-onkey", | 109 | .name = "max8925-onkey", |
110 | .num_resources = 2, | 110 | .num_resources = 2, |