提交 04e02417 编写于 作者: G Geert Uytterhoeven 提交者: Lee Jones

mfd: marvell: Constify struct mfd_cell where possible

As of commit 03e361b2 ("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: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 afb580a9
......@@ -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,
......
......@@ -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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册