From 8d6ac0d04531111065c501932415484abd986d0a Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Sat, 22 Oct 2016 10:04:24 +0100 Subject: [PATCH] drivers: Make the device struct driver_api pointer target const Change-Id: I9e3815a0a0628171ab105fffef77a75a706ecca4 Signed-off-by: Marcus Shawcroft --- include/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/device.h b/include/device.h index 1870b820af3..371087a54b2 100644 --- a/include/device.h +++ b/include/device.h @@ -400,7 +400,7 @@ struct device_config { */ struct device { struct device_config *config; - void *driver_api; + const void *driver_api; void *driver_data; };