OSDN Git Service

[media] Move mediabus format definition to a more standard place
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Mon, 10 Nov 2014 17:28:26 +0000 (14:28 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 14 Nov 2014 19:47:47 +0000 (17:47 -0200)
commitedcf58bc031e621f519c9dfce3c7e1ea6880c70a
treeb4501cd616c00412d1403181ac62d1d67cbe41bb
parent698f6260b886291e14706c57daec2e1560d59af5
[media] Move mediabus format definition to a more standard place

Define MEDIA_BUS_FMT macros (re-using the values defined in the
v4l2_mbus_pixelcode enum) into a separate header file so that they can be
used from the DRM/KMS subsystem without any reference to the V4L2
subsystem.

Then set V4L2_MBUS_FMT definitions to the MEDIA_BUS_FMT values using the
V4L2_MBUS_FROM_MEDIA_BUS_FMT macro.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/uapi/linux/Kbuild
include/uapi/linux/media-bus-format.h [new file with mode: 0644]
include/uapi/linux/v4l2-mediabus.h