]> git.sur5r.net Git - u-boot/commitdiff
video: ipu_disp: squash clang warning
authorJeroen Hofstee <jeroen@myspectrum.nl>
Tue, 17 Jun 2014 17:20:27 +0000 (19:20 +0200)
committerAnatolij Gustschin <agust@denx.de>
Mon, 11 Aug 2014 15:52:21 +0000 (17:52 +0200)
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 <troy.kisky@boundarydevices.com>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
drivers/video/ipu_disp.c

index bf39a517fa48b3f9973dda8963ba724b2c36c788..948e1fc401facea11502734ac53e82dd70df36e5 100644 (file)
@@ -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