]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 6 Feb 2023 07:36:42 +0000 (08:36 +0100)
commita967a3a788028f541e4db54beabcebc3648997db
tree5682de583c490f1367145bb42b2e59f7d3f752fa
parente1610209a8879e7bc6a4910f93b071cf6d91cbef
media: mc: Get media_device directly from pad

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: 9e3576a1ae2b ("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>
drivers/media/mc/mc-entity.c