]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: mc: Add num_links flag to media_pad
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 14 Jan 2024 22:30:02 +0000 (00:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:17 +0000 (15:28 +0200)
commitebb6fb7f6265b180108f07508a2b6185d61aacbd
tree5ca0cb33a52d2f615963d4ede21d15d97524eb80
parentc95318607fbe8fdd44991a8dad2e44118e6b8812
media: mc: Add num_links flag to media_pad

[ Upstream commit baeddf94aa61879b118f2faa37ed126d772670cc ]

Maintain a counter of the links connected to a pad in the media_pad
structure. This helps checking if a pad is connected to anything, which
will be used in the pipeline building code.

Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/mc/mc-entity.c
include/media/media-entity.h