diff options
author | 2021-01-18 02:52:53 +0100 | |
---|---|---|
committer | 2021-02-06 08:45:49 +0100 | |
commit | c89502c84b15836d204c442dac221f7ddfb80eb2 (patch) | |
tree | 9760f2d6d53eef0a3e15a224997a1de540fdc052 /include/media/dvbdev.h | |
parent | media: renesas-ceu: Use v4l2_async_notifier_add_*_subdev (diff) | |
download | linux-c89502c84b15836d204c442dac221f7ddfb80eb2.tar.gz linux-c89502c84b15836d204c442dac221f7ddfb80eb2.tar.bz2 linux-c89502c84b15836d204c442dac221f7ddfb80eb2.zip |
media: pxa-camera: Use v4l2_async_notifier_add_*_subdev
The use of v4l2_async_notifier_add_subdev will be discouraged.
Drivers are instead encouraged to use a helper such as
v4l2_async_notifier_add_fwnode_remote_subdev.
This fixes a misuse of the API, as v4l2_async_notifier_add_subdev
should get a kmalloc'ed struct v4l2_async_subdev.
Use the appropriate helper: v4l2_async_notifier_add_i2c_subdev
or v4l2_async_notifier_add_fwnode_remote_subdev, which handles
the needed setup, instead of open-coding it.
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media/dvbdev.h')
0 files changed, 0 insertions, 0 deletions