diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-11-24 09:45:49 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-11-26 08:05:24 +0100 |
commit | 7f957515191af5ad78f9905afad5fae584988986 (patch) | |
tree | ae328fbb1baf34d4d57dec0ec273544ef1707e3f /drivers/media/test-drivers/vidtv/vidtv_psi.h | |
parent | c570fb9ffc056124fe6dc7ea2c69ca3af3093116 (diff) | |
download | linux-stable-7f957515191af5ad78f9905afad5fae584988986.tar.gz linux-stable-7f957515191af5ad78f9905afad5fae584988986.tar.bz2 linux-stable-7f957515191af5ad78f9905afad5fae584988986.zip |
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>
Diffstat (limited to 'drivers/media/test-drivers/vidtv/vidtv_psi.h')
-rw-r--r-- | drivers/media/test-drivers/vidtv/vidtv_psi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vidtv/vidtv_psi.h b/drivers/media/test-drivers/vidtv/vidtv_psi.h index d30c8dd53d11..b6c0518ef4a4 100644 --- a/drivers/media/test-drivers/vidtv/vidtv_psi.h +++ b/drivers/media/test-drivers/vidtv/vidtv_psi.h @@ -556,7 +556,7 @@ struct vidtv_psi_pat_write_args { * equal to the size of the PAT, since more space is needed for TS headers during TS * encapsulation. */ -u32 vidtv_psi_pat_write_into(struct vidtv_psi_pat_write_args args); +u32 vidtv_psi_pat_write_into(struct vidtv_psi_pat_write_args *args); /** * struct vidtv_psi_sdt_write_args - Arguments for writing a SDT table |