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

mfd: max8997: Make of_device_id array const

Array of struct of_device_id may be be const as expected by both
of_match_table field and of_match_node() 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
f1eb2cb8 b68ece3d

+1 -1
+1 -1
drivers/mfd/max8997.c
··· 51 51 }; 52 52 53 53 #ifdef CONFIG_OF 54 - static struct of_device_id max8997_pmic_dt_match[] = { 54 + static const struct of_device_id max8997_pmic_dt_match[] = { 55 55 { .compatible = "maxim,max8997-pmic", .data = (void *)TYPE_MAX8997 }, 56 56 {}, 57 57 };