[media] media: create a macro to get entity ID
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 14 Aug 2015 13:42:05 +0000 (10:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:40 +0000 (12:18 -0200)
commitfa762394fd85c838ade769990478bc4e01fd95e8
tree426b044963d02003fb341dd29fbc1fa4d6213f8d
parent20fe0319de9aca71ba45e2f93c4a2a73dabde4da
[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>
drivers/media/media-device.c
drivers/media/media-entity.c
drivers/media/platform/vsp1/vsp1_video.c
include/media/media-entity.h