diff options
author | Charles Keepax | 2019-01-16 11:28:44 +0000 |
---|---|---|
committer | Bartosz Golaszewski | 2019-02-14 15:14:37 +0100 |
commit | 0faf40e373dd8f6ef4fca367a0db1e8c16f5e01e (patch) | |
tree | 833b86c670fd0f061a336995e5ca69df3f9f6987 /drivers/gpio | |
parent | aac1e3c9680b47e1bdadeea22bda3da3de6399b0 (diff) |
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-madera.c | 2 |
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, |