media: rcar-vin: Handle special pixel formats in a switch
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 6 Dec 2019 16:39:31 +0000 (17:39 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 14:20:48 +0000 (15:20 +0100)
commit9ac560d48d3caab7c6e8cd259520598631535271
tree2ea1683f8f91365066a32a35f5f870a01f36bf2d
parent1498dfba5127c10b9208eb451a8d143b93b37a76
media: rcar-vin: Handle special pixel formats in a switch

Before extending the special pixel format handling turn the multiple if
statements into a switch.

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-v4l2.c