[media] v4l: of: Read lane-polarities endpoint property
authorSakari Ailus <sakari.ailus@iki.fi>
Wed, 25 Mar 2015 22:57:37 +0000 (19:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 19:46:42 +0000 (16:46 -0300)
commitb6eec1c4939962838ff51b10a8feb7a49bccc0d2
tree9b4c792f2c4a1b7b4b57ee3a8b209f81bb681e5d
parent9e1ee1b7307e384716a8c2cefca9036a2cf170e5
[media] v4l: of: Read lane-polarities endpoint property

Add lane_polarities field to struct v4l2_of_bus_mipi_csi2 and write the
contents of the lane-polarities property to it. The field tells the polarity
of the physical lanes starting from the first one. Any unused lanes are
ignored, i.e. only the polarity of the used lanes is specified.

Also rework reading the "data-lanes" property a little.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-of.c
include/media/v4l2-of.h