From: Krzysztof Kozlowski Date: Tue, 13 May 2014 10:58:48 +0000 (+0200) Subject: mfd: max8998: Make of_device_id array const X-Git-Tag: next-20140530~51^2~30 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8655d389956635c0c57c1529fa1fbb6275967127;p=karo-tx-linux.git 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 Signed-off-by: Lee Jones --- 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 },