summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2019-01-16 14:28:44 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2019-02-14 17:14:37 +0300
commit0faf40e373dd8f6ef4fca367a0db1e8c16f5e01e (patch)
tree833b86c670fd0f061a336995e5ca69df3f9f6987
parentaac1e3c9680b47e1bdadeea22bda3da3de6399b0 (diff)
downloadlinux-0faf40e373dd8f6ef4fca367a0db1e8c16f5e01e.tar.xz
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>
-rw-r--r--drivers/gpio/gpio-madera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-madera.c b/drivers/gpio/gpio-madera.c
index 7ba68d1a0932..c9dad0543672 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,