aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/devres.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-03-11 07:21:17 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-03-17 12:45:59 -0400
commitb6202855d14752a3822db48c7e9ed534de672af1 (patch)
tree9400efcc09b3bd4213cf0cd2efbdf67c4e8ee672 /drivers/gpio/devres.c
parent878ce05894284d3eb683e7d249d09c796c02d73b (diff)
gpio: fix constconst in devres
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>
Diffstat (limited to 'drivers/gpio/devres.c')
-rw-r--r--drivers/gpio/devres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c
index ec24da2418b3..07ba82317ece 100644
--- a/drivers/gpio/devres.c
+++ b/drivers/gpio/devres.c
@@ -135,7 +135,7 @@ struct gpio_desc *devm_get_gpiod_from_child(struct device *dev,
135 const char *con_id, 135 const char *con_id,
136 struct fwnode_handle *child) 136 struct fwnode_handle *child)
137{ 137{
138 static const char const *suffixes[] = { "gpios", "gpio" }; 138 static const char * const suffixes[] = { "gpios", "gpio" };
139 char prop_name[32]; /* 32 is max size of property name */ 139 char prop_name[32]; /* 32 is max size of property name */
140 struct gpio_desc **dr; 140 struct gpio_desc **dr;
141 struct gpio_desc *desc; 141 struct gpio_desc *desc;