diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-05-13 06:58:48 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-06-03 03:11:34 -0400 |
commit | e920574d7f2869c7be859a4e37da9305be98698e (patch) | |
tree | 3cadc96f41d317a9dd41982e2c3b7a0d93bed68c | |
parent | 5785a97e3d977a68854be9702ba428dd4c1f7e74 (diff) |
mfd: max8998: 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>
-rw-r--r-- | drivers/mfd/max8998.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max8998.c b/drivers/mfd/max8998.c index 592db06098e6..a37cb7444b6e 100644 --- a/drivers/mfd/max8998.c +++ b/drivers/mfd/max8998.c | |||
@@ -132,7 +132,7 @@ int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask) | |||
132 | EXPORT_SYMBOL(max8998_update_reg); | 132 | EXPORT_SYMBOL(max8998_update_reg); |
133 | 133 | ||
134 | #ifdef CONFIG_OF | 134 | #ifdef CONFIG_OF |
135 | static struct of_device_id max8998_dt_match[] = { | 135 | static const struct of_device_id max8998_dt_match[] = { |
136 | { .compatible = "maxim,max8998", .data = (void *)TYPE_MAX8998 }, | 136 | { .compatible = "maxim,max8998", .data = (void *)TYPE_MAX8998 }, |
137 | { .compatible = "national,lp3974", .data = (void *)TYPE_LP3974 }, | 137 | { .compatible = "national,lp3974", .data = (void *)TYPE_LP3974 }, |
138 | { .compatible = "ti,lp3974", .data = (void *)TYPE_LP3974 }, | 138 | { .compatible = "ti,lp3974", .data = (void *)TYPE_LP3974 }, |