]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: v4l2-fwnode: Allow passing NULL fwnode to endpoint parsers
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 12 Nov 2025 07:57:57 +0000 (09:57 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:02 +0000 (23:33 +0100)
commit37a5b80a94cc6ca3b6a5c2999a6ad008ca2e6277
tree0597e3b2be306b7aa42d7eceb0a25252f7f890cc
parente3d5436c7099881e3604826757c8d65acc2d94f3
media: v4l2-fwnode: Allow passing NULL fwnode to endpoint parsers

v4l2_fwnode_endpoint_parse() and v4l2_fwnode_endpoint_alloc_parse() take
a fwnode as the first argument and leave it up to the caller to check a
valid fwnode has been obtained through various means. Instead, add a check
here so the callers won't need to do that anymore.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Michael Riesch <michael.riesch@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/v4l2-core/v4l2-fwnode.c
include/media/v4l2-fwnode.h