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

mfd: staging: 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.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org
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
2977dc92 cf3c7cf6

+1 -1
+1 -1
drivers/staging/nvec/nvec.c
··· 83 83 84 84 static struct nvec_chip *nvec_power_handle; 85 85 86 - static struct mfd_cell nvec_devices[] = { 86 + static const struct mfd_cell nvec_devices[] = { 87 87 { 88 88 .name = "nvec-kbd", 89 89 .id = 1,