summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2016-10-24 08:20:19 +0100
committerAnas Nashif <nashif@linux.intel.com>2016-10-26 20:50:57 +0000
commit6cec26caef2e01d0d31400d15ab353995a97ec87 (patch)
tree6fc112abb16d3813f0d7b3379e86f1433ebb5eba /drivers
parentd8de6cb08d2a21cca18976bf60a6dbbdd2210de4 (diff)
drivers/soc_flash_nrf5: Make driver_api const.
Change-Id: Ie894304c2f4047eba83730f0553df10b0f0144e1 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/flash/soc_flash_nrf5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/flash/soc_flash_nrf5.c b/drivers/flash/soc_flash_nrf5.c
index e275f3c4e..c2d0b15cd 100644
--- a/drivers/flash/soc_flash_nrf5.c
+++ b/drivers/flash/soc_flash_nrf5.c
@@ -153,7 +153,7 @@ static int flash_nrf5_write_protection(struct device *dev, bool enable)
return 0;
}
-static struct flash_driver_api flash_nrf5_api = {
+static const struct flash_driver_api flash_nrf5_api = {
.read = flash_nrf5_read,
.write = flash_nrf5_write,
.erase = flash_nrf5_erase,