Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/gpio/devres.c
··· 135 135 const char *con_id, 136 136 struct fwnode_handle *child) 137 137 { 138 - static const char const *suffixes[] = { "gpios", "gpio" }; 138 + static const char * const suffixes[] = { "gpios", "gpio" }; 139 139 char prop_name[32]; /* 32 is max size of property name */ 140 140 struct gpio_desc **dr; 141 141 struct gpio_desc *desc;