śr., 16 sty 2019 o 12:28 Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx> napisał(a): > > madera_gpio_chip is only used as a template so it can be marked as const. > > Signed-off-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx> > --- > drivers/gpio/gpio-madera.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-madera.c b/drivers/gpio/gpio-madera.c > index 7ba68d1a09324..c9dad0543672a 100644 > --- a/drivers/gpio/gpio-madera.c > +++ b/drivers/gpio/gpio-madera.c > @@ -107,7 +107,7 @@ static void madera_gpio_set(struct gpio_chip *chip, unsigned int offset, > MADERA_GPIO1_CTRL_1 + reg_offset, ret); > } > > -static struct gpio_chip madera_gpio_chip = { > +static const struct gpio_chip madera_gpio_chip = { > .label = "madera", > .owner = THIS_MODULE, > .request = gpiochip_generic_request, > -- > 2.11.0 > Applied, thanks! Bart