[media] cobalt: simplify colorspace code
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 31 May 2015 10:51:51 +0000 (07:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 14:51:25 +0000 (11:51 -0300)
commite1dedcfff1bbaa6b56a40116ee402b6d222e20c9
tree596d27d0362a98d09811ab1fb50ab957359fe688
parent136a5e9e01ed89d8891845027b3ee731bb662926
[media] cobalt: simplify colorspace code

Simplify cobalt_g/try_fmt_vid_cap by not setting the colorspace fields in
pix again (since v4l2_fill_pix_format does that already), and by using
v4l2_fill_mbus_format in cobalt_s_fmt_vid_out which allows the get_fmt
call to be dropped as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/cobalt/cobalt-v4l2.c