gpiolib: constify label in gpio_device

This string is never modified. Make it const.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Bartosz Golaszewski 2017-12-13 12:25:19 +01:00 committed by Linus Walleij
parent c4b54e138a
commit 3b469b0a13
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ struct gpio_device {
struct gpio_desc *descs;
int base;
u16 ngpio;
char *label;
const char *label;
void *data;
struct list_head list;