media: v4l2-fwnode: add v4l2_fwnode_connector
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 12 Mar 2020 10:31:42 +0000 (11:31 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Mar 2020 15:32:29 +0000 (16:32 +0100)
commita5e1deec4ebbf090226eb821c2295590b509625f
tree23f80ff915a966cd3a476bddb4fc19e99f2253e5
parent5e316ff52cd717e98dacdb8e006ee40cc6aa1e8b
media: v4l2-fwnode: add v4l2_fwnode_connector

Currently every driver needs to parse the connector endpoints by it self.
This is the initial work to make this generic. A generic connector has
common members and connector specific members. The common members are:
  - type
  - label (optional)
  - links
  - nr_of_links

The specific members are stored within a union, since only one of them
can be available at the time. Since this is the initial support the
patch adds only the analog-connector specific ones.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
include/media/v4l2-fwnode.h