media: rcar-vin: Refactor link notify
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 24 Jan 2022 12:48:56 +0000 (13:48 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 22 Feb 2022 08:41:10 +0000 (09:41 +0100)
commit344cadc5a22ba899c09780d9bb1cea758f277069
treed4b51256c62c41a92c93e1b040e8ac0a6cddc55d
parent2b891d3980f6c255459d0e1c29ce2152ec7cf678
media: rcar-vin: Refactor link notify

The code has grown organically and a lot of checks are performed for
the CSI-2 use-case even if the link notify is for a subdevice connected
to the parallel interface.

Before reworking the CSI-2 routing logic split the CSI-2 and parallel
link notify code in two separate blocks to make it clearer. There is no
functional change.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/rcar-vin/rcar-core.c