media: vicodec: rename v4l2_fwht_default_fmt to v4l2_fwht_find_nth_fmt
authorDafna Hirschfeld <dafna3@gmail.com>
Wed, 6 Mar 2019 21:13:34 +0000 (16:13 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 25 Mar 2019 17:50:00 +0000 (13:50 -0400)
commit50e4c5e1b6e4ff583a0335d97a6386a00da56446
tree8ae01f0523f0b4a31105a54ea8fd38490f6ef90c
parent92dc64d41276c34343dcd542c2b7a1ed2bea42ad
media: vicodec: rename v4l2_fwht_default_fmt to v4l2_fwht_find_nth_fmt

Rename 'v4l2_fwht_default_fmt' to 'v4l2_fwht_find_nth_fmt'
and add a function 'v4l2_fwht_validate_fmt' to check if
a format info matches the parameters.
This function will also be used to validate the stateless
params when adding support for stateless codecs.

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/codec-v4l2-fwht.c
drivers/media/platform/vicodec/codec-v4l2-fwht.h
drivers/media/platform/vicodec/vicodec-core.c