]> git.baikalelectronics.ru Git - kernel.git/commit
media: vidtv: avoid data copy when initializing the multiplexer
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 22 Sep 2020 08:28:12 +0000 (10:28 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 26 Nov 2020 06:45:20 +0000 (07:45 +0100)
commita0b5eafe31d419191e923d0bbef11b8681ac596d
tree7bd6659a6130230afb6a6b24a5334af5819385f2
parentb3bbe479a30b465094e3f450a5d53faf00fb29d5
media: vidtv: avoid data copy when initializing the multiplexer

Initialize the fields of the arguments directly when
declaring it, and pass the args as a pointer, instead of
copying them.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_bridge.c
drivers/media/test-drivers/vidtv/vidtv_mux.c
drivers/media/test-drivers/vidtv/vidtv_mux.h