[U-Boot] [PATCH] video: ipu_disp: squash clang warning

Jeroen Hofstee jeroen at myspectrum.nl
Mon Jun 16 21:41:03 CEST 2014


Since &rgb2ycbcr_coeff and friends are declared const, but
assigned to a void pointer, clang will warn that the const
is implicity casted away. Add const to indicate the pointer
points to const data to get rid of these warnings.

Cc: Stefano Babic <sbabic at denx.de>
Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>
---
 drivers/video/ipu_disp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/ipu_disp.c b/drivers/video/ipu_disp.c
index cefd2dc..31b5a10 100644
--- a/drivers/video/ipu_disp.c
+++ b/drivers/video/ipu_disp.c
@@ -33,7 +33,7 @@ enum csc_type_t {
 
 struct dp_csc_param_t {
 	int mode;
-	void *coeff;
+	void * const coeff;
 };
 
 #define SYNC_WAVE 0
-- 
1.8.3.2



More information about the U-Boot mailing list