linux/drivers/media/platform
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
..
blackfin [media] vb2: Add support for non monotonic timestamps 2013-03-05 14:53:05 -03:00
davinci [media] davinci/dm644x_ccdc: fix compiler warning 2013-03-19 16:16:04 -03:00
exynos-gsc [media] media: Convert to devm_ioremap_resource() 2013-02-06 09:33:04 -02:00
marvell-ccic [media] mcam-core: implement the control framework 2013-02-08 14:42:16 -02:00
omap [media] omap_vout: find_vma() needs ->mmap_sem held 2013-01-06 11:01:06 -02:00
omap3isp arm-soc: late OMAP changes 2013-02-28 20:00:40 -08:00
s3c-camif [media] s3c-camif: Fail on insufficient number of allocated buffers 2013-03-05 14:53:47 -03:00
s5p-fimc [media] vb2: Add support for non monotonic timestamps 2013-03-05 14:53:05 -03:00
s5p-g2d [media] s5p-g2d: Add DT based discovery support 2013-03-05 14:54:17 -03:00
s5p-jpeg [media] media: Convert to devm_ioremap_resource() 2013-02-06 09:33:04 -02:00
s5p-mfc [media] s5p-mfc: Staticize symbols in s5p_mfc_opr_v5.c 2013-03-18 17:25:30 -03:00
s5p-tv Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
soc_camera [media] Media: remove incorrect __init/__exit markups 2013-03-18 16:59:59 -03:00
Kconfig [media] media/v4l2: VIDEOBUF2_DMA_CONTIG should depend on HAS_DMA 2013-03-18 18:03:18 -03:00
Makefile [media] media: add a VEU MEM2MEM format conversion and scaling driver 2012-12-20 14:23:10 -02:00
arv.c
coda.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
coda.h
fsl-viu.c Merge branch 'v4l_for_linus' into staging/for_v3.9 2013-01-24 18:49:18 -02:00
indycam.c
indycam.h
m2m-deinterlace.c [media] m2m-deinterlace: use correct check for kzalloc failure 2012-12-27 19:08:12 -02:00
mem2mem_testdev.c [media] v4l: mem2mem_testdev: add support for dmabuf importing 2012-11-25 17:19:45 -02:00
mx2_emmaprp.c [media] media: Convert to devm_ioremap_resource() 2013-02-06 09:33:04 -02:00
omap24xxcam-dma.c
omap24xxcam.c Merge branch 'v4l_for_linus' into staging/for_v3.9 2013-01-24 18:49:18 -02:00
omap24xxcam.h
sh_veu.c [media] media: remove __dev* annotations 2013-01-11 13:03:24 -02:00
sh_vou.c [media] sh_vou: Use vou_dev instead of vou_file wherever possible 2013-02-13 17:29:41 -02:00
timblogiw.c [media] timblogiw: Fix sparse warning 2013-03-14 11:36:34 -03:00
via-camera.c [media] via-camera: implement the control framework 2013-02-08 14:42:57 -02:00
via-camera.h
vino.c [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
vino.h
vivi.c [media] vb2: Add support for non monotonic timestamps 2013-03-05 14:53:05 -03:00