Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1fd3289 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] media-entity.h: convert media_entity_cleanup to inline



This function was used in the past to free the links
that were allocated by the media controller core.

However, this is not needed anymore. We should likely
get rid of the funcion on some function, but, for now,
let's just convert into an inlined function and let the
compiler to get rid of it.

Suggested-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent cc2dd94a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -246,12 +246,6 @@ media_entity_pads_init(struct media_entity *entity, u16 num_pads,
}
EXPORT_SYMBOL_GPL(media_entity_pads_init);

void
media_entity_cleanup(struct media_entity *entity)
{
}
EXPORT_SYMBOL_GPL(media_entity_cleanup);

/* -----------------------------------------------------------------------------
 * Graph traversal
 */
+2 −1
Original line number Diff line number Diff line
@@ -345,7 +345,8 @@ void media_gobj_remove(struct media_gobj *gobj);

int media_entity_pads_init(struct media_entity *entity, u16 num_pads,
		      struct media_pad *pads);
void media_entity_cleanup(struct media_entity *entity);

static inline void media_entity_cleanup(struct media_entity *entity) {};

__must_check int media_create_pad_link(struct media_entity *source,
			u16 source_pad, struct media_entity *sink,