media: vidtv: simplify PSI write function
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 24 Nov 2020 07:42:20 +0000 (08:42 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 26 Nov 2020 07:05:24 +0000 (08:05 +0100)
commit5edbd330e3a06557642ffb509cc2be39964e26a6
tree77cc29727939955ce18bca0b0ce8e1f56b290ca3
parent160028542bb15868c2da0b88bda6335dce221c1c
media: vidtv: simplify PSI write function

The function vidtv_psi_ts_psi_write_into() initializes the
ts_header fields several times, and receives a struct
as argument, instead of using a pointer to struct.

Cleanup the function, in order to reduce its stack usage
and to avoid initializing the ts_header multiple times.

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