]> git.ipfire.org Git - thirdparty/linux.git/commit
media: mc-entity: Drop ifdef for media_entity_cleanup definition
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 6 May 2026 16:54:38 +0000 (19:54 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 21 May 2026 05:41:32 +0000 (07:41 +0200)
commitaef73a9dad5c761e4a70fa171fed8e85ca1c1abd
treed4976ba9809068413697727ab6ae0bafa9ecba59
parentb3a035a02213c0409ce5f14bcbb0a435a6eca085
media: mc-entity: Drop ifdef for media_entity_cleanup definition

The media_entity_cleanup() function is defined in media-entity.h as a
static inline no-op when CONFIG_MEDIA_CONTROLLER is enabled, and as a
no-op macro otherwise. This complexity is unneeded. Use a static inline
function in all cases.

Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Link: https://patch.msgid.link/20260506165438.1767378-2-laurent.pinchart@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
include/media/media-entity.h