Skip to content

Commit 488e900

Browse files
krzkLee Jones
authored andcommitted
mfd: max8907: Make of_device_id array const
Array of struct of_device_id may be be const as expected by of_match_table field. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 5ce9a55 commit 488e900

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mfd/max8907.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static int max8907_i2c_remove(struct i2c_client *i2c)
305305
}
306306

307307
#ifdef CONFIG_OF
308-
static struct of_device_id max8907_of_match[] = {
308+
static const struct of_device_id max8907_of_match[] = {
309309
{ .compatible = "maxim,max8907" },
310310
{ },
311311
};

0 commit comments

Comments
 (0)