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

Commit 687b4209 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] media controller: get rid of entity subtype on Kernel



Don't use anymore the type/subtype entity data/macros
inside the Kernel.

Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent b50bde4e
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -185,16 +185,6 @@ struct media_intf_devnode {
	u32				minor;
};

static inline u32 media_entity_type(struct media_entity *entity)
{
	return entity->type & MEDIA_ENT_TYPE_MASK;
}

static inline u32 media_entity_subtype(struct media_entity *entity)
{
	return entity->type & MEDIA_ENT_SUBTYPE_MASK;
}

static inline u32 media_entity_id(struct media_entity *entity)
{
	return entity->graph_obj.id;
+0 −2
Original line number Diff line number Diff line
@@ -42,8 +42,6 @@ struct media_device_info {

#define MEDIA_ENT_ID_FLAG_NEXT		(1 << 31)

/* Used values for media_entity_desc::type */

/*
 * Initial value to be used when a new entity is created
 * Drivers should change it to something useful