]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpio: fix constconst in devres
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Mar 2015 11:21:17 +0000 (12:21 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Mar 2015 16:45:59 +0000 (17:45 +0100)
Commit 1feb57a245a4910b03202a814ffc51a900bd4aca
"gpio: add parameter to allow the use named gpios"
includes a double-consted array. What we want is not
const const * but const * const (const pointer to const
data). Fix this.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Olliver Schinagl <oliver@schinagl.nl>
Cc: Rojhalat Ibrahim <imr@rtschenk.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/devres.c

index ec24da2418b31fe606a5af12dc9a9bb9e99697b3..07ba82317eceb04493d9fa56e46cacfa98f1c59e 100644 (file)
@@ -135,7 +135,7 @@ struct gpio_desc *devm_get_gpiod_from_child(struct device *dev,
                                            const char *con_id,
                                            struct fwnode_handle *child)
 {
-       static const char const *suffixes[] = { "gpios", "gpio" };
+       static const char * const suffixes[] = { "gpios", "gpio" };
        char prop_name[32]; /* 32 is max size of property name */
        struct gpio_desc **dr;
        struct gpio_desc *desc;