]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: v4l: Memset argument to 0 before calling get_mbus_config pad op
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 16 Dec 2024 08:48:49 +0000 (10:48 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:54 +0000 (15:22 +0100)
commit91d6a99acfa5ce9f95ede775074b80f7193bd717
treebd3f0a8618822b48ebd229ceaad04632589250ee
parent015853f0bd274b5406934c239bd812a00fac11cc
media: v4l: Memset argument to 0 before calling get_mbus_config pad op

Memset the config argument to get_mbus_config V4L2 sub-device pad
operation to zero before calling the operation. This ensures the callers
don't need to bother with it nor the implementations need to set all
fields that may not be relevant to them.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h