]> 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)
commit2c90b2f151a2448fc7e790d20fbba86778aadb79
tree3718d8dfe37f3bc1cc4f5b6d444dc03430d42ca8
parentb5d6705b40af879797e2673ddc16a0a9d11ba1ba
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