From: Jeroen Hofstee Date: Tue, 17 Jun 2014 17:20:27 +0000 (+0200) Subject: video: ipu_disp: squash clang warning X-Git-Tag: v2014.10-rc2~142 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6e9cff2dc0e9c526951119c13fd093d2f8101ce;p=oweals%2Fu-boot.git video: ipu_disp: squash clang warning Since rgb2ycbcr_coeff and friends are declared const, but assigned to a void pointer, clang will warn that the const is implicity casted away. If the pointer is changed to void const * gcc will warn when it is implicitly casted to a const int array. Just add a correctly typed pointer instead to prevent these casts and hence the warnings. Cc: Troy Kisky Cc: Stefano Babic Signed-off-by: Jeroen Hofstee --- diff --git a/drivers/video/ipu_disp.c b/drivers/video/ipu_disp.c index bf39a517fa..948e1fc401 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; + const int (*coeff)[5][3]; }; #define SYNC_WAVE 0