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

mfd: max14577: Make of_device_id array const

Array of struct of_device_id should be const as expected by both
of_match_table field and of_match_device() call.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
8f7f6270 df20b7c5

+1 -1
+1 -1
drivers/mfd/max14577.c
··· 57 57 }, 58 58 }; 59 59 60 - static struct of_device_id max14577_dt_match[] = { 60 + static const struct of_device_id max14577_dt_match[] = { 61 61 { 62 62 .compatible = "maxim,max14577", 63 63 .data = (void *)MAXIM_DEVICE_TYPE_MAX14577,