]> git.baikalelectronics.ru Git - kernel.git/commit
media: vidtv: cleanup PSI version numbers
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 20 Sep 2020 07:17:45 +0000 (09:17 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 1 Oct 2020 07:20:56 +0000 (09:20 +0200)
commit50f48ea197dda974cec9e15c8219506d6e954cee
tree2a88cd25c2f980aad23559931c1a898ecb41228f
parent8279cf2a7d312c4ff74f51192049ed5ead9857aa
media: vidtv: cleanup PSI version numbers

There's no reason to use static vars to store PSI version
numbers.

Also, currently, version numbers are starting with 0x01,
because there's a code being called that increases it to
1 for all table initializer code, as the code may support
dynamic changes at the PS tables on some future.

So, let's just initialize them to 0x1f, in order for the
versions to be reported as starting from 0.

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