android_kernel_samsung_univ.../include/media/davinci
Hans Verkuil 1de1951930 [media] davinci/dm644x_ccdc: fix compiler warning
drivers/media/platform/davinci/dm644x_ccdc.c: In function ‘validate_ccdc_param’:
drivers/media/platform/davinci/dm644x_ccdc.c:233:32: warning: comparison between ‘enum ccdc_gama_width’ and ‘enum ccdc_data_size’ [-Wenum-compare]
It took a bit of work, see this thread of an earlier attempt to fix this:
https://patchwork.kernel.org/patch/1923091/
I've chosen not to follow the suggestions in that thread since gamma_width is
really a different property from data_size. What you really want is to know if
gamma_width fits inside data_size and for that you need to translate each
enum into a maximum bit number so you can safely compare the two.
So I put in two static inline translation functions instead, keeping the rest
of the code the same (except for fixing the 'gama' typo).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-03-19 16:16:04 -03:00
..
ccdc_types.h V4L/DVB (12252): v4l: ccdc types used across ccdc modules for vpfe capture driver 2009-09-19 00:18:18 -03:00
dm355_ccdc.h Fix common misspellings 2011-03-31 11:26:23 -03:00
dm644x_ccdc.h [media] davinci/dm644x_ccdc: fix compiler warning 2013-03-19 16:16:04 -03:00
isif.h Fix common misspellings 2011-03-31 11:26:23 -03:00
vpbe_display.h [media] media: davinci: vpbe: migrate driver to videobuf2 2012-11-21 13:55:10 -02:00
vpbe_osd.h [media] davinci: vpbe: pass different platform names to handle different ip's 2012-12-21 14:18:50 -02:00
vpbe_types.h [media] davinci: remove VPBE_ENC_DV_PRESET and rename VPBE_ENC_CUSTOM_TIMINGS 2013-03-19 16:09:53 -03:00
vpbe_venc.h [media] davinci: vpbe: pass different platform names to handle different ip's 2012-12-21 14:18:50 -02:00
vpbe.h [media] dm644x: replace the obsolete preset API by the timings API 2012-10-05 14:27:18 -03:00
vpfe_capture.h V4L/DVB: V4L: vpfe_capture: Add call back function for interrupt clear for vpfe_cfg 2010-05-18 00:52:43 -03:00
vpfe_types.h
vpif_types.h [media] media: davinci: vpif: display: separate out subdev from output 2012-10-05 22:12:27 -03:00
vpss.h [media] davinci/vpss: add helper functions for setting hw params 2012-12-21 14:07:20 -02:00