diff options
author | 2021-01-18 02:52:45 +0100 | |
---|---|---|
committer | 2021-02-06 08:40:36 +0100 | |
commit | c1cf3d896d124e3e00794f9bfbde49f0fc279e3f (patch) | |
tree | 40a706481c461b75bdc74d64f1746ea56483274f /lib/string_helpers.c | |
parent | media: i2c: ov5648: remove unnecessary NULL check (diff) | |
download | linux-c1cf3d896d124e3e00794f9bfbde49f0fc279e3f.tar.gz linux-c1cf3d896d124e3e00794f9bfbde49f0fc279e3f.tar.bz2 linux-c1cf3d896d124e3e00794f9bfbde49f0fc279e3f.zip |
media: v4l2-async: Clean v4l2_async_notifier_add_fwnode_remote_subdev
Change v4l2_async_notifier_add_fwnode_remote_subdev semantics
so it allocates the struct v4l2_async_subdev pointer.
This makes the API consistent: the v4l2-async subdevice addition
functions have now a unified usage model. This model is simpler,
as it makes v4l2-async responsible for the allocation and release
of the subdevice descriptor, and no longer something the driver
has to worry about.
On the user side, the change makes the API simpler for the drivers
to use and less error-prone.
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions