summaryrefslogtreecommitdiff
path: root/drivers/video/ipu_disp.c
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-06-17 19:20:27 +0200
committerAnatolij Gustschin <agust@denx.de>2014-08-11 17:52:21 +0200
commite6e9cff2dc0e9c526951119c13fd093d2f8101ce (patch)
treec1fcfe25522299fa5fe97e505ff4e2699ff4b826 /drivers/video/ipu_disp.c
parente66866c542e492c42f04cfc2e59317203b7cd6ea (diff)
downloadu-boot-imx-e6e9cff2dc0e9c526951119c13fd093d2f8101ce.zip
u-boot-imx-e6e9cff2dc0e9c526951119c13fd093d2f8101ce.tar.gz
u-boot-imx-e6e9cff2dc0e9c526951119c13fd093d2f8101ce.tar.bz2
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 <troy.kisky@boundarydevices.com> Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'drivers/video/ipu_disp.c')
-rw-r--r--drivers/video/ipu_disp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/ipu_disp.c b/drivers/video/ipu_disp.c
index bf39a51..948e1fc 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