]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb247bd80f320778e3359ed0330f99c30b7a87a8a
tree2ea1683f8f91365066a32a35f5f870a01f36bf2d
parent476ba62a7ca94b58c1532e22c47ae30aa2a92465
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