linux/drivers/media/platform/xilinx
Javier Martinez Canillas d10c98949d [media] media: use entity.graph_obj.mdev instead of .parent
The struct media_entity has a .parent field that stores a pointer
to the parent struct media_device. But recently a media_gobj was
embedded into the entities and since struct media_gojb already has
a pointer to a struct media_device in the .mdev field, the .parent
field becomes redundant and can be removed.

This patch replaces all the usage of .parent by .graph_obj.mdev so
that field will become unused and can be removed on a later patch.

No functional changes.

The transformation was made using the following coccinelle spatch:

@@
struct media_entity *me;
@@

- me->parent
+ me->graph_obj.mdev

@@
struct media_entity *link;
@@

- link->source->entity->parent
+ link->source->entity->graph_obj.mdev

@@
struct exynos_video_entity *ve;
@@

- ve->vdev.entity.parent
+ ve->vdev.entity.graph_obj.mdev

Suggested-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2016-01-11 12:18:43 -02:00
..
Kconfig [media] v4l: xilinx: VIDEO_XILINX should depend on HAS_DMA 2015-05-01 07:10:09 -03:00
Makefile [media] v4l: xilinx: Add Test Pattern Generator driver 2015-04-03 01:04:18 -03:00
xilinx-dma.c [media] media: use entity.graph_obj.mdev instead of .parent 2016-01-11 12:18:43 -02:00
xilinx-dma.h [media] media: videobuf2: Replace videobuf2-core with videobuf2-v4l2 2015-10-01 08:48:18 -03:00
xilinx-tpg.c [media] media: get rid of unused "extra_links" param on media_entity_init() 2016-01-11 12:18:39 -02:00
xilinx-vip.c
xilinx-vip.h
xilinx-vipp.c [media] media: rename the function that create pad links 2016-01-11 12:18:43 -02:00
xilinx-vipp.h
xilinx-vtc.c
xilinx-vtc.h