]> git.baikalelectronics.ru Git - kernel.git/commit
media: vidtv: psi: extract descriptor chaining code into a helper
authorDaniel W. S. Almeida <dwlsalmeida@gmail.com>
Sat, 31 Oct 2020 15:05:50 +0000 (16:05 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 26 Nov 2020 06:39:54 +0000 (07:39 +0100)
commit3a1846dfdbcd5813f4285ff0fab82bf2e21f7ebb
tree3718d8dfe37f3bc1cc4f5b6d444dc03430d42ca8
parent285cad40b32cf8f14804fecedfa45ae534e5c274
media: vidtv: psi: extract descriptor chaining code into a helper

The code to append a descriptor to the end of a chain is repeated
throughout the psi generator code. Extract it into its own helper
function to avoid cluttering.

Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_psi.c