]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bf4c9111dc3e11ab45d2f2111adc47618fb373d
treebc4d9993d3a5e839bd91897f2519e1e4b4ab25df
parentc92add0ab62f4d3d8e4ce278c78d7524794d1461
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