gpio: stm32: Make driver config_info structure const.
Change-Id: I05c844794c29225a6dd6462d512d470a687ac3a5 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
c351093177
commit
b33e59dc02
@ -204,7 +204,7 @@ static int gpio_stm32_init(struct device *device)
|
||||
}
|
||||
|
||||
#define GPIO_DEVICE_INIT(__name, __suffix, __base_addr, __port, __clock) \
|
||||
static struct gpio_stm32_config gpio_stm32_cfg_## __suffix = { \
|
||||
static const struct gpio_stm32_config gpio_stm32_cfg_## __suffix = { \
|
||||
.base = (uint32_t *)__base_addr, \
|
||||
.port = __port, \
|
||||
.clock_subsys = UINT_TO_POINTER(__clock), \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user