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

gpio: madera: Add missing const

madera_gpio_chip is only used as a template so it can be marked as const.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

authored by

Charles Keepax and committed by
Bartosz Golaszewski
0faf40e3 aac1e3c9

+1 -1
+1 -1
drivers/gpio/gpio-madera.c
··· 107 107 MADERA_GPIO1_CTRL_1 + reg_offset, ret); 108 108 } 109 109 110 - static struct gpio_chip madera_gpio_chip = { 110 + static const struct gpio_chip madera_gpio_chip = { 111 111 .label = "madera", 112 112 .owner = THIS_MODULE, 113 113 .request = gpiochip_generic_request,