diff options
author | Marco Felsch <m.felsch@pengutronix.de> | 2019-01-30 17:09:56 +0100 |
---|---|---|
committer | Marco Felsch <m.felsch@pengutronix.de> | 2020-03-06 15:50:58 +0100 |
commit | 4c342a5cce960384eef333b906aa3d4207a7b7e7 (patch) | |
tree | 68e7e7624fe8a82e4f4cadd34f6f30cba175f008 /usr | |
parent | 506fa27cd56c14cf6461cd632464f0b19ea09017 (diff) | |
download | linux-0-day-4c342a5cce960384eef333b906aa3d4207a7b7e7.tar.gz linux-0-day-4c342a5cce960384eef333b906aa3d4207a7b7e7.tar.xz |
media: v4l2-fwnode: add initial connector parsing support
The patch adds the initial connector parsing code, so we can move from a
driver specific parsing code to a generic one. Currently only the
generic fields and the analog-connector specific fields are parsed. Parsing
the other connector specific fields can be added by a simple callbacks.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
[1] https://patchwork.kernel.org/cover/10794703/
v12:
- all: adapt documentation
- v4l2_fwnode_connector_parse_analog: convert to void
- v4l2_fwnode_get_connector_type: new helper
- split v4l2_fwnode_connector_alloc_parse into:
- v4l2_fwnode_connector_parse: setup the connector ready to add links
- v4l2_fwnode_connector_add_link: add a link to the connector
- v4l2_fwnode_connector_parse: improve error handling
- v4l2_fwnode_connector_parse: improve connector type handling
- v4l2_fwnode_connector_free: freed resources to NULL
v10:
- drop V4L2_CONN_HDMI support
- adapt pr_err msg to reflect new state (-> connector is unkown)
v9:
- Fix leading semicolon found by kbuild semicolon.cocci
v8:
- V4L2_CON_* -> V4L2_CONN_*
- tvnorms -> sdtv-standards
- adapt to new v4l2_fwnode_connector_analog member
- return error in case of V4L2_CONN_HDMI
v7:
@Jacopo: I dropped your r b tag becuase of the amount of changes I
made..
- drop unnecessary comments
- fix commet style
- s/v4l2_fwnode_connector_conv.name/v4l2_fwnode_connector_conv.compatible/
- make label size variable and drop V4L2_CONNECTOR_MAX_LABEL usage
- do not assign a default label in case of no label was specified
- remove useless /* fall through */ comments
- add support for N connector links
- rename local variables to be more meaningful
- adjust kernedoc
- add v4l2_fwnode_connector_free()
- improve error handling (use different error values)
- make use of pr_warn_once()
v6:
- use unsigned count var
- fix comment and style issues
- place '/* fall through */' to correct places
- fix error handling and cleanup by releasing fwnode
- drop vga and dvi parsing support as those connectors are rarely used
these days
v5:
- s/strlcpy/strscpy/
v2-v4:
- nothing since the patch was squashed from series [1] into this
series.
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions