]> git.baikalelectronics.ru Git - kernel.git/commit
media: mc: Get media_device directly from pad
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Dec 2022 13:25:04 +0000 (14:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:42 +0000 (09:33 +0100)
commitf84e50354c8ac8d323d45ca18892c0ce27ebcf4e
treec0e27167c5d14b7a5a51336bab58240a4b03b769
parent5a0ddd43a1e827b20e001737a63ac6f16b0c7830
media: mc: Get media_device directly from pad

[ Upstream commit faaff2c2863e18fd69f187dc69da083bc59d820b ]

Various functions access the media_device from a pad by going through
the entity the pad belongs to. Remove the level of indirection and get
the media_device from the pad directly.

Fixes: b34dbe1ba23b ("media: mc: convert pipeline funcs to take media_pad")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/mc/mc-entity.c