]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: lp3943: Make mfd_cell array const
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 13 May 2014 10:58:43 +0000 (12:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 23 May 2014 09:34:22 +0000 (10:34 +0100)
mfd_add_devices() expects array of struct mfd_cell to be const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/lp3943.c

index e32226836fb4cc724d7b99b7ff3d63264296d897..335b930112b27fadda90533d3d9aacfc9619ef1d 100644 (file)
@@ -62,7 +62,7 @@ static const struct lp3943_reg_cfg lp3943_mux_cfg[] = {
        { LP3943_REG_MUX3, 0xC0, 6 },
 };
 
-static struct mfd_cell lp3943_devs[] = {
+static const struct mfd_cell lp3943_devs[] = {
        {
                .name = "lp3943-pwm",
                .of_compatible = "ti,lp3943-pwm",