upstream: [media] mem2mem_testdev: improve field handling
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Mar 2014 13:58:29 +0000 (10:58 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:59 +0000 (11:54 +0900)
commit8ed2a98fcee5b68578aa21f64fdac2ef142df164
tree8409dcb540bff452cbc733078f3b51b83f6bd6ef
parentdae132baff45056e7a7bf292801491ad90f1b1f7
upstream: [media] mem2mem_testdev: improve field handling

try_fmt should just set field to NONE and not return an error if
a different field was passed.

buf_prepare should check if the field passed in from userspace has a
supported field value. At the moment only NONE is supported and ANY
is mapped to NONE.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/mem2mem_testdev.c