]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regulator: max8952: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 08:06:34 +0000 (17:06 +0900)
committerMark Brown <broonie@linaro.org>
Wed, 7 May 2014 19:56:47 +0000 (20:56 +0100)
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8952.c

index d920f5a32ec8e935bd5288b571dd9adb3076c319..c2792f0271ab053a0195dcbeae94d91c5e04499e 100644 (file)
@@ -129,7 +129,7 @@ static const struct regulator_desc regulator = {
 };
 
 #ifdef CONFIG_OF
-static struct of_device_id max8952_dt_match[] = {
+static const struct of_device_id max8952_dt_match[] = {
        { .compatible = "maxim,max8952" },
        {},
 };