media: cx25840: simplify cx23885_dif_setup()
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 3 Aug 2023 07:42:10 +0000 (09:42 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:40:01 +0000 (09:40 +0200)
commit57a3afc5d542afcb4ca0ddd3379ab95c984bba88
tree31da4de5467dc06c2e6e4c090c73096a58ce92d5
parent3f1e1f69ad6c13c9e9fadd0595f7e2ce33ba89a1
media: cx25840: simplify cx23885_dif_setup()

Instead of creating a huge switch statement (that thoroughly confuses
smatch), create a table of coefficients and use that.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/cx25840/cx25840-core.c