mfd: 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>
このコミットが含まれているのは:
@@ -114,7 +114,7 @@ static struct resource ds1wm_resources[] __initdata = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct mfd_cell ds1wm_cell __initdata = {
|
||||
static const struct mfd_cell ds1wm_cell __initconst = {
|
||||
.name = "ds1wm",
|
||||
.enable = ds1wm_enable,
|
||||
.disable = ds1wm_disable,
|
||||
|
新しいイシューから参照
ユーザーをブロックする