summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2016-10-24 08:19:06 +0100
committerAnas Nashif <nashif@linux.intel.com>2016-10-25 18:45:48 +0000
commitc5ec6bdc451c30af3cf7310bfb51cc482d9127e3 (patch)
tree11b9723264fac49ff7c7e747b3631bc497a6e1c2 /drivers
parent3eedeee041e87e041a1af1c493e7dfe492806718 (diff)
drivers/counter_qmsi_aon: Make driver_api structure const.
Change-Id: Ic455d13543d48700e10c051c85a3c46bddbe98fc Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/counter/counter_qmsi_aon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/counter/counter_qmsi_aon.c b/drivers/counter/counter_qmsi_aon.c
index d51ca0081..3f4901171 100644
--- a/drivers/counter/counter_qmsi_aon.c
+++ b/drivers/counter/counter_qmsi_aon.c
@@ -55,7 +55,7 @@ static int aon_counter_qmsi_set_alarm(struct device *dev,
return -ENODEV;
}
-struct counter_driver_api aon_counter_qmsi_api = {
+static const struct counter_driver_api aon_counter_qmsi_api = {
.start = aon_counter_qmsi_start,
.stop = aon_counter_qmsi_stop,
.read = aon_counter_qmsi_read,
@@ -70,4 +70,4 @@ static int aon_counter_init(struct device *dev)
DEVICE_AND_API_INIT(aon_counter, CONFIG_AON_COUNTER_QMSI_DEV_NAME,
aon_counter_init, NULL, NULL, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
- (void *)&aon_counter_qmsi_api);
+ &aon_counter_qmsi_api);