]> git.baikalelectronics.ru Git - kernel.git/commit
media: vidtv: cleanup PAT write function
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 24 Nov 2020 08:45:49 +0000 (09:45 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 26 Nov 2020 07:05:24 +0000 (08:05 +0100)
commit0d4e3e30c5b5b78f294528182521f70ddb16f26e
treeae328fbb1baf34d4d57dec0ec273544ef1707e3f
parentdf5b330ff1a1320ff5fe391561bb4d0675955f9f
media: vidtv: cleanup PAT write function

Avoid initializing the structs multiple times and pass the
PAT struct as a pointer, instead of a var.

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