[media] media: add macros to check if subdev or V4L2 DMA
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 21 Aug 2015 15:17:40 +0000 (12:17 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:49 +0000 (12:18 -0200)
commitfa17b46a6a01013f48c33934c09e02f51f099f2b
tree393357396df1b838139c53315c61550c235f92c2
parentfef486a07d69cbcae81bf65a6817ff7383104a24
[media] media: add macros to check if subdev or V4L2 DMA

As we'll be removing entity subtypes from the Kernel, we need
to provide a way for drivers and core to check if a given
entity is represented by a V4L2 subdev or if it is an V4L2
I/O entity (typically with DMA).

Drivers that create entities that don't belong to any defined subdev
category should use MEDIA_ENT_T_V4L2_SUBDEV_UNKNOWN.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/media/media-entity.h
include/uapi/linux/media.h