drm: connector: Clarify drm_connecter.ddc field documentation
Subsystems (2)
PATCH 1/1 drm: connector: Clarify drm_connecter.ddc field documentation
Improve the documentation of the ddc field by using DDC and I2C consistently, and explaining more clearly what the field points to.
--- include/drm/drm_connector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
include/drm/drm_connector.h +4 -4
@@ -1315,10 +1315,10 @@ struct drm_connector {/** * @ddc: associated ddc adapter. -* A connector usually has its associated ddc adapter. If a driver uses -* this field, then an appropriate symbolic link is created in connector -* sysfs directory to make it easy for the user to tell which i2c -* adapter is for a particular display. +* When the connector carries DDC signals, this field points to the I2C +* adapter connected to the DDC signals, if any. When this field is not +* NULL a symbolic link is created in the connector's sysfs directory +* to expose the I2C adapter used by the connector. * * The field should be set by calling drm_connector_init_with_ddc(). */
Signature · 8 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 13 lines · Laurent Pinchart
Improve the documentation of the ddc field by using DDC and I2C consistently, and explaining more clearly what the field points to.
Signed-off-by Laurent Pinchart <[email protected]>--- include/drm/drm_connector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)include/drm/drm_connector.h +0
-0
include/drm/drm_connector.h struct drm_connector { · line 1318
Quoted 8 lines
include/drm/drm_connector.h +1
-4@@ -1315,10 +1315,10 @@ struct drm_connector {/** * @ddc: associated ddc adapter. -* A connector usually has its associated ddc adapter. If a driver uses -* this field, then an appropriate symbolic link is created in connector -* sysfs directory to make it easy for the user to tell which i2c -* adapter is for a particular display. +* When the connector carries DDC signals, this field points to the I2C
s/DDC/a DDC/
include/drm/drm_connector.h struct drm_connector { · line 1319
Quoted 1 line
include/drm/drm_connector.h +1
-0+* adapter connected to the DDC signals, if any. When this field is not
s/not NULL/is set/ otherwise parsing hiccup on the double negative :-)
Quoted 14 lines
include/drm/drm_connector.h +2
-0+* NULL a symbolic link is created in the connector's sysfs directory +* to expose the I2C adapter used by the connector. * * The field should be set by calling drm_connector_init_with_ddc(). */ Signature · 8 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Daniel,
Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Laurent Pinchart
Improve the documentation of the ddc field by using DDC and I2C consistently, and explaining more clearly what the field points to.
Signed-off-by Laurent Pinchart <[email protected]>--- include/drm/drm_connector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)include/drm/drm_connector.h +0
-0@@ -1315,10 +1315,10 @@ struct drm_connector {
Quoted 9 lines
include/drm/drm_connector.h struct drm_connector { · line 1318
Quoted 7 lines
include/drm/drm_connector.h +1
-4/** * @ddc: associated ddc adapter. -* A connector usually has its associated ddc adapter. If a driver uses -* this field, then an appropriate symbolic link is created in connector -* sysfs directory to make it easy for the user to tell which i2c -* adapter is for a particular display. +* When the connector carries DDC signals, this field points to the I2C s/DDC/a DDC/
DDC is carried by two signals (at least for DDC2, the mostly unimplemented DDC1 used a single signal), so "carries DDC signals" seems appropriate to me.
Quoted 10 lines
include/drm/drm_connector.h struct drm_connector { · line 1319
Quoted 1 line
include/drm/drm_connector.h +1
-0+* adapter connected to the DDC signals, if any. When this field is not s/not NULL/is set/ otherwise parsing hiccup on the double negative :-)
Reviewed-by Daniel Vetter <[email protected]>Quoted 5 lines
include/drm/drm_connector.h +2
-0+* NULL a symbolic link is created in the connector's sysfs directory +* to expose the I2C adapter used by the connector. * * The field should be set by calling drm_connector_init_with_ddc(). */
Signature · 7 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 29 lines · Laurent Pinchart
Hi Daniel,
Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Laurent Pinchart
Improve the documentation of the ddc field by using DDC and I2C consistently, and explaining more clearly what the field points to.
Signed-off-by Laurent Pinchart <[email protected]>--- include/drm/drm_connector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)include/drm/drm_connector.h +0
-0@@ -1315,10 +1315,10 @@ struct drm_connector {Quoted 9 lines
include/drm/drm_connector.h struct drm_connector { · line 1318
Quoted 7 lines
include/drm/drm_connector.h +1
-4/** * @ddc: associated ddc adapter. -* A connector usually has its associated ddc adapter. If a driver uses -* this field, then an appropriate symbolic link is created in connector -* sysfs directory to make it easy for the user to tell which i2c -* adapter is for a particular display. +* When the connector carries DDC signals, this field points to the I2C s/DDC/a DDC/
Quoted 3 lines
DDC is carried by two signals (at least for DDC2, the mostly unimplemented DDC1 used a single signal), so "carries DDC signals" seems appropriate to me.
I overlooked the plural, looks good as-is.
-Daniel
Quoted 16 lines
Quoted 11 lines
include/drm/drm_connector.h struct drm_connector { · line 1319
Quoted 2 lines
include/drm/drm_connector.h +1
-0+* adapter connected to the DDC signals, if any. When this field is not s/not NULL/is set/ otherwise parsing hiccup on the double negative :-)
Reviewed-by Daniel Vetter <[email protected]>Quoted 5 lines
include/drm/drm_connector.h +2
-0+* NULL a symbolic link is created in the connector's sysfs directory +* to expose the I2C adapter used by the connector. * * The field should be set by calling drm_connector_init_with_ddc(). */ --
Regards,Laurent Pinchart
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel