2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-14 00:24:15 +08:00
linux-next/drivers/media/platform/rcar-vin
Niklas Söderlund 23525ef9f8 media: rcar-vin: move subdevice handling to async callbacks
In preparation for Gen3 support move the subdevice initialization and
clean up from rvin_v4l2_{register,unregister}() directly to the async
callbacks. This simplifies the addition of Gen3 support as the
rvin_v4l2_register() can be shared for both Gen2 and Gen3 while direct
subdevice control are only used on Gen2.

While moving this code drop a large comment which is copied from the
framework documentation and fold rvin_mbus_supported() into its only
caller. Also move the initialization and cleanup code to separate
functions to increase readability.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-04-20 09:34:53 -04:00
..
Kconfig [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
Makefile
rcar-core.c media: rcar-vin: move subdevice handling to async callbacks 2018-04-20 09:34:53 -04:00
rcar-dma.c media: rcar-vin: rename poorly named initialize and cleanup functions 2018-04-20 09:31:33 -04:00
rcar-v4l2.c media: rcar-vin: move subdevice handling to async callbacks 2018-04-20 09:34:53 -04:00
rcar-vin.h media: rcar-vin: rename poorly named initialize and cleanup functions 2018-04-20 09:31:33 -04:00