media: pci: cx18-av-vbi: Replace open-coded parity calculation with parity8()
authorKuan-Wei Chiu <visitorckw@gmail.com>
Thu, 15 May 2025 08:09:33 +0000 (16:09 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 17 Jun 2025 08:51:35 +0000 (10:51 +0200)
commitdf698f3d10871a6ca8446d8edb87a89433e4029e
tree9b0ef70e691f989009432398d93b34751fd2cffc
parent47e0452b40af6bf821a96e34d95fd5915fe4c7a6
media: pci: cx18-av-vbi: 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/pci/cx18/cx18-av-vbi.c