Skip to content

Commit

Permalink
gpio: madera: Add missing const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Charles Keepax authored and Bartosz Golaszewski committed Feb 14, 2019
1 parent aac1e3c commit 0faf40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-madera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0faf40e

Please sign in to comment.