media: media/test_drivers: Replace open-coded parity calculation with parity8()
authorKuan-Wei Chiu <visitorckw@gmail.com>
Thu, 15 May 2025 08:07:48 +0000 (16:07 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 17 Jun 2025 08:51:35 +0000 (10:51 +0200)
commit47e0452b40af6bf821a96e34d95fd5915fe4c7a6
tree719f827847fa31a0b3b46d4ed936011b155436fb
parent57b5a302b5d529db96ddc52fbccec005092ebb3d
media: media/test_drivers: Replace open-coded parity calculation with parity8()

Refactor parity calculations to use the standard parity8() helper.
This change eliminates redundant implementations.

Co-developed-by: Yu-Chun Lin <eleanor15x@gmail.com>
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/test-drivers/vivid/vivid-vbi-gen.c