drivers/stm32f10x_clock: Make driver_api structure const.

Change-Id: I7d8fb922b9ea0d11c48f61004138a166b9eb4d98
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-24 08:18:41 +01:00 committed by Anas Nashif
parent fece918846
commit 960565269a

View file

@ -191,7 +191,7 @@ static int stm32f10x_clock_control_get_subsys_rate(struct device *clock,
return 0;
}
static struct clock_control_driver_api stm32f10x_clock_control_api = {
static const struct clock_control_driver_api stm32f10x_clock_control_api = {
.on = stm32f10x_clock_control_on,
.off = stm32f10x_clock_control_off,
.get_rate = stm32f10x_clock_control_get_subsys_rate,