]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c42e7cb46c3ab10b07a45a60301e8da94251f6a
tree23f80ff915a966cd3a476bddb4fc19e99f2253e5
parenta1eaa26a1e691106a1043f739d9c895a5c1acef6
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