diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-05-13 14:58:48 +0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-06-03 11:11:34 +0400 |
commit | e920574d7f2869c7be859a4e37da9305be98698e (patch) | |
tree | 3cadc96f41d317a9dd41982e2c3b7a0d93bed68c /drivers/mfd/max8998.c | |
parent | 5785a97e3d977a68854be9702ba428dd4c1f7e74 (diff) | |
download | linux-e920574d7f2869c7be859a4e37da9305be98698e.tar.xz |
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>
Diffstat (limited to 'drivers/mfd/max8998.c')
-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) 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 }, |