]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66bb61f010776dc867e78e7818c25d81a7acec68
tree77cc29727939955ce18bca0b0ce8e1f56b290ca3
parentdcfc64b4b3055243910ea712e045e466c5a24b1f
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