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

mfd: max8907: Make of_device_id array const

Array of struct of_device_id may be be const as expected by
of_match_table field.

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
488e9003 5ce9a55b

+1 -1
+1 -1
drivers/mfd/max8907.c
··· 305 305 } 306 306 307 307 #ifdef CONFIG_OF 308 - static struct of_device_id max8907_of_match[] = { 308 + static const struct of_device_id max8907_of_match[] = { 309 309 { .compatible = "maxim,max8907" }, 310 310 { }, 311 311 };