media: vicodec: Validate version dependent header values in a separate function
authorDafna Hirschfeld <dafna3@gmail.com>
Wed, 6 Mar 2019 21:13:33 +0000 (16:13 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 25 Mar 2019 17:47:30 +0000 (13:47 -0400)
commit92dc64d41276c34343dcd542c2b7a1ed2bea42ad
tree6e76380623113220786bbd505c00c86544f1e198
parent86764b88c447f9690765db59189ecbeb72325e4c
media: vicodec: Validate version dependent header values in a separate function

Move the code that validates version dependent header
values to a separate function 'validate_by_version'

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/vicodec-core.c