linux_dsm_epyc7002/drivers/media/platform/rcar-vin
Steve Longerbeam d079f94c90 media: platform: Switch to v4l2_async_notifier_add_subdev
Switch all media platform drivers to call v4l2_async_notifier_add_subdev()
to add asd's to a notifier, in place of referencing the notifier->subdevs[]
array. These drivers also must now call v4l2_async_notifier_init() before
adding asd's to their notifiers.

There may still be cases where a platform driver maintains a list of
asd's that is a duplicate of the notifier asd_list, in which case its
possible the platform driver list can be removed, and can reference the
notifier asd_list instead. One example of where a duplicate list has
been removed in this patch is xilinx-vipp.c. If there are such cases
remaining, those drivers should be optimized to remove the duplicate
platform driver asd lists.

None of the changes to the platform drivers in this patch have been
tested. Verify that the async subdevices needed by the platform are
bound at load time, and that the driver unloads and reloads correctly
with no memory leaking of asd objects.

Suggested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-10-04 15:55:38 -04:00
..
Kconfig media: rcar-vin: convert to SPDX identifiers 2018-08-03 16:03:45 -04:00
Makefile media: rcar-vin: convert to SPDX identifiers 2018-08-03 16:03:45 -04:00
rcar-core.c media: platform: Switch to v4l2_async_notifier_add_subdev 2018-10-04 15:55:38 -04:00
rcar-csi2.c media: platform: Switch to v4l2_async_notifier_add_subdev 2018-10-04 15:55:38 -04:00
rcar-dma.c media: rcar-vin: convert to SPDX identifiers 2018-08-03 16:03:45 -04:00
rcar-v4l2.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
rcar-vin.h media: rcar-vin: convert to SPDX identifiers 2018-08-03 16:03:45 -04:00