media: allegro: extract nal value lookup functions to header
authorMichael Tretter <m.tretter@pengutronix.de>
Wed, 8 Sep 2021 13:03:52 +0000 (14:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 Oct 2021 14:59:41 +0000 (15:59 +0100)
commite5c28f21916df73c5d794fa82d79ca3cce7ea1f3
treebc4d9993d3a5e839bd91897f2519e1e4b4ab25df
parent89091e12464ace837bb72c5d20173c069481afd2
media: allegro: extract nal value lookup functions to header

The lookup of the h.264 or hevc values for the respective V4L2 controls
is done by the driver that uses the sps/pps generator and not in the
generator. Therefore, it is more intuitive to define these functions
directly in the header and not in the module.

Extract the functions to the headers as static inline functions.

Also simplify the function name and add kernel-doc for the hevc
functions.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/allegro-dvt/allegro-core.c
drivers/media/platform/allegro-dvt/nal-h264.c
drivers/media/platform/allegro-dvt/nal-h264.h
drivers/media/platform/allegro-dvt/nal-hevc.c
drivers/media/platform/allegro-dvt/nal-hevc.h