diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-14 10:42:05 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 12:18:40 -0200 |
commit | fa762394fd85c838ade769990478bc4e01fd95e8 (patch) | |
tree | 426b044963d02003fb341dd29fbc1fa4d6213f8d /drivers/media/platform | |
parent | 20fe0319de9aca71ba45e2f93c4a2a73dabde4da (diff) | |
download | kernel_replicant_linux-fa762394fd85c838ade769990478bc4e01fd95e8.tar.gz kernel_replicant_linux-fa762394fd85c838ade769990478bc4e01fd95e8.tar.bz2 kernel_replicant_linux-fa762394fd85c838ade769990478bc4e01fd95e8.zip |
[media] media: create a macro to get entity ID
Instead of accessing directly entity.id, let's create a macro,
as this field will be moved into a common struct later on.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/vsp1/vsp1_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c index fb52683b5c22..516595cff408 100644 --- a/drivers/media/platform/vsp1/vsp1_video.c +++ b/drivers/media/platform/vsp1/vsp1_video.c @@ -323,10 +323,10 @@ static int vsp1_pipeline_validate_branch(struct vsp1_pipeline *pipe, break; /* Ensure the branch has no loop. */ - if (entities & (1 << entity->subdev.entity.id)) + if (entities & (1 << media_entity_id(&entity->subdev.entity))) return -EPIPE; - entities |= 1 << entity->subdev.entity.id; + entities |= 1 << media_entity_id(&entity->subdev.entity); /* UDS can't be chained. */ if (entity->type == VSP1_ENTITY_UDS) { |