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

index 8cf7a015cfe501ddf3ce52c72abd6f45fdde579f..595364ee178a54b1292f376099dc81bc1a5a390c 100644 (file)
@@ -51,7 +51,7 @@ static const struct mfd_cell max8997_devs[] = {
 };
 
 #ifdef CONFIG_OF
-static struct of_device_id max8997_pmic_dt_match[] = {
+static const struct of_device_id max8997_pmic_dt_match[] = {
        { .compatible = "maxim,max8997-pmic", .data = (void *)TYPE_MAX8997 },
        {},
 };
This page took 0.03707 seconds and 5 git commands to generate.