[media] v4l: vsp1: Replace container_of() with dedicated macro
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 3 Mar 2016 23:06:22 +0000 (20:06 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 17 Jun 2016 11:13:42 +0000 (08:13 -0300)
commit7cf0f123c7354aa9b11cad5e3fdd9a5435cde4f0
treed7c6e636b0b372cc5dd7102f1e9aa174d694b1a9
parent44f4619857766289c99e5d61a87ba1621e8ddef6
[media] v4l: vsp1: Replace container_of() with dedicated macro

Add a macro to cast from a struct media_entity to a struct vsp1_entity
to replace the manual implementations.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_entity.c