Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: dialog: 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>

authored by

Geert Uytterhoeven and committed by
Lee Jones
c8f675ff 6bbb3c4c

+3 -3
+1 -1
drivers/mfd/da9052-core.c
··· 427 427 } 428 428 EXPORT_SYMBOL_GPL(da9052_adc_read_temp); 429 429 430 - static struct mfd_cell da9052_subdev_info[] = { 430 + static const struct mfd_cell da9052_subdev_info[] = { 431 431 { 432 432 .name = "da9052-regulator", 433 433 .id = 1,
+1 -1
drivers/mfd/da9055-core.c
··· 294 294 .flags = IORESOURCE_IRQ, 295 295 }; 296 296 297 - static struct mfd_cell da9055_devs[] = { 297 + static const struct mfd_cell da9055_devs[] = { 298 298 { 299 299 .of_compatible = "dialog,da9055-gpio", 300 300 .name = "da9055-gpio",
+1 -1
drivers/mfd/da9063-core.c
··· 75 75 }; 76 76 77 77 78 - static struct mfd_cell da9063_devs[] = { 78 + static const struct mfd_cell da9063_devs[] = { 79 79 { 80 80 .name = DA9063_DRVNAME_REGULATORS, 81 81 .num_resources = ARRAY_SIZE(da9063_regulators_resources),