[media] v4l: of: check for unique lanes in data-lanes and clock-lanes
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 31 Jan 2017 12:08:31 +0000 (10:08 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 8 Feb 2017 12:32:11 +0000 (10:32 -0200)
commite22f709e055e0e71d65ae9bb9bf6d32c31f3a1ac
tree16f136794a2e3ba1e06913a945c58183cf278fe4
parentd2fe28feaebbbbe147e5e6e7bc68857f9bd7f6ad
[media] v4l: of: check for unique lanes in data-lanes and clock-lanes

All lanes in data-lanes and clock-lanes properties should be unique. Add
a check for this in v4l2_of_parse_csi_bus() and print a warning if
duplicated lanes are found.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-of.c