[media] media: use media_gobj inside pads
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 14 Aug 2015 15:50:08 +0000 (12:50 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:42 +0000 (12:18 -0200)
commit18710dc67a433ed2c3ecaaffefd8e34502e53262
tree641ab8210e297bb165a53536035d23d3e1df7dd5
parentbfab2aacccfc144e2cceccb71ec89f1eff1b8c51
[media] media: use media_gobj inside pads

PADs also need unique object IDs that won't conflict with
the entity object IDs.

The pad objects are currently created via media_entity_init()
and, once created, never change.

While this will likely change in the future in order to
support dynamic changes, for now we'll keep PADs as arrays
and initialize the media_gobj embedded structs when
registering the entity.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c
drivers/media/media-entity.c
include/media/media-device.h
include/media/media-entity.h