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

mfd: intel: 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
cf3c7cf6 7c0517b1

+1 -1
+1 -1
drivers/mfd/intel_msic.c
··· 178 178 * These devices appear only after the MSIC driver itself is initialized so 179 179 * we can guarantee that the SCU IPC interface is ready. 180 180 */ 181 - static struct mfd_cell msic_other_devs[] = { 181 + static const struct mfd_cell msic_other_devs[] = { 182 182 /* Audio codec in the MSIC */ 183 183 { 184 184 .id = -1,