From 1653d90cbfc91b6c62c7c6f57cb3170b3b3e7755 Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Wed, 19 Oct 2016 22:09:28 +0100 Subject: [PATCH] gpio: sam3: Make driver config_info structure const. Change-Id: I366a8096e61f2c9f6481fdbb83ba4257c94bddae Signed-off-by: Marcus Shawcroft --- drivers/gpio/gpio_atmel_sam3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio_atmel_sam3.c b/drivers/gpio/gpio_atmel_sam3.c index 6776aa740ec..60706e35a9c 100644 --- a/drivers/gpio/gpio_atmel_sam3.c +++ b/drivers/gpio/gpio_atmel_sam3.c @@ -297,7 +297,7 @@ int gpio_sam3_init(struct device *dev) #ifdef CONFIG_GPIO_ATMEL_SAM3_PORTA void gpio_sam3_config_a(struct device *dev); -static struct gpio_sam3_config gpio_sam3_a_cfg = { +static const struct gpio_sam3_config gpio_sam3_a_cfg = { .port = __PIOA, .config_func = gpio_sam3_config_a, @@ -325,7 +325,7 @@ void gpio_sam3_config_a(struct device *dev) #ifdef CONFIG_GPIO_ATMEL_SAM3_PORTB void gpio_sam3_config_b(struct device *dev); -static struct gpio_sam3_config gpio_sam3_b_cfg = { +static const struct gpio_sam3_config gpio_sam3_b_cfg = { .port = __PIOB, .config_func = gpio_sam3_config_b, @@ -353,7 +353,7 @@ void gpio_sam3_config_b(struct device *dev) #ifdef CONFIG_GPIO_ATMEL_SAM3_PORTC void gpio_sam3_config_c(struct device *dev); -static struct gpio_sam3_config gpio_sam3_c_cfg = { +static const struct gpio_sam3_config gpio_sam3_c_cfg = { .port = __PIOC, .config_func = gpio_sam3_config_c, @@ -381,7 +381,7 @@ void gpio_sam3_config_c(struct device *dev) #ifdef CONFIG_GPIO_ATMEL_SAM3_PORTD void gpio_sam3_config_d(struct device *dev); -static struct gpio_sam3_config gpio_sam3_d_cfg = { +static const struct gpio_sam3_config gpio_sam3_d_cfg = { .port = __PIOD, .config_func = gpio_sam3_config_d,