OSDN Git Service

mfd: max8998: Make of_device_id array const
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 13 May 2014 10:58:48 +0000 (12:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:34 +0000 (08:11 +0100)
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>
drivers/mfd/max8998.c

index 592db06..a37cb74 100644 (file)
@@ -132,7 +132,7 @@ int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask)
 EXPORT_SYMBOL(max8998_update_reg);
 
 #ifdef CONFIG_OF
-static struct of_device_id max8998_dt_match[] = {
+static const struct of_device_id max8998_dt_match[] = {
        { .compatible = "maxim,max8998", .data = (void *)TYPE_MAX8998 },
        { .compatible = "national,lp3974", .data = (void *)TYPE_LP3974 },
        { .compatible = "ti,lp3974", .data = (void *)TYPE_LP3974 },