OSDN Git Service

media: v4l: async, fwnode: Improve module organisation
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 5 Mar 2021 17:38:39 +0000 (18:38 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 09:46:27 +0000 (11:46 +0200)
commitff3cc65cadb5d7333fde557b38cbb60b3a6cf496
treec5b0b3e983962711a05929d43eeb4eec99921823
parent1cb13613735a15b994b680ae5ef18aaf79108b95
media: v4l: async, fwnode: Improve module organisation

The V4L2 async framework is generally used with the V4L2 fwnode, which
also depends on the former. There are a few exceptions but they are
relatively few.

At the same time there is a vast number of systems that need videodev
module, but have no use for v4l2-async that's now part of videodev.

In order to improve, split the v4l2-async into its own module. Selecting
V4L2_FWNODE also selects V4L2_ASYNC.

This also moves the initialisation of the debufs entries for async subdevs
to loading of the v4l2-async module. The directory is named as
"v4l2-async".

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/Kconfig
drivers/media/v4l2-core/Kconfig
drivers/media/v4l2-core/Makefile
drivers/media/v4l2-core/v4l2-async.c
drivers/media/v4l2-core/v4l2-dev.c