Skip to content

Commit cc7096f

Browse files
committed
drm/mode: document path property and function to set it. (v1.1)
These two didn't get documented properly, do so. Pointed out by Daniel. v1.1: add missing boilerplate (Daniel) Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 122387a commit cc7096f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Documentation/DocBook/drm.tmpl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ void intel_crt_init(struct drm_device *dev)
25342534
</tr>
25352535
<tr>
25362536
<td rowspan="21" valign="top" >DRM</td>
2537-
<td rowspan="2" valign="top" >Generic</td>
2537+
<td rowspan="3" valign="top" >Generic</td>
25382538
<td valign="top" >“EDID”</td>
25392539
<td valign="top" >BLOB | IMMUTABLE</td>
25402540
<td valign="top" >0</td>
@@ -2549,6 +2549,13 @@ void intel_crt_init(struct drm_device *dev)
25492549
<td valign="top" >Contains DPMS operation mode value.</td>
25502550
</tr>
25512551
<tr>
2552+
<td valign="top" >“PATH”</td>
2553+
<td valign="top" >BLOB | IMMUTABLE</td>
2554+
<td valign="top" >0</td>
2555+
<td valign="top" >Connector</td>
2556+
<td valign="top" >Contains topology path to a connector.</td>
2557+
</tr>
2558+
<tr>
25522559
<td rowspan="1" valign="top" >Plane</td>
25532560
<td valign="top" >“type”</td>
25542561
<td valign="top" >ENUM | IMMUTABLE</td>

drivers/gpu/drm/drm_crtc.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4005,6 +4005,19 @@ int drm_mode_getblob_ioctl(struct drm_device *dev,
40054005
return ret;
40064006
}
40074007

4008+
/**
4009+
* drm_mode_connector_set_path_property - set tile property on connector
4010+
* @connector: connector to set property on.
4011+
* @path: path to use for property.
4012+
*
4013+
* This creates a property to expose to userspace to specify a
4014+
* connector path. This is mainly used for DisplayPort MST where
4015+
* connectors have a topology and we want to allow userspace to give
4016+
* them more meaningful names.
4017+
*
4018+
* Returns:
4019+
* Zero on success, errno on failure.
4020+
*/
40084021
int drm_mode_connector_set_path_property(struct drm_connector *connector,
40094022
char *path)
40104023
{

0 commit comments

Comments
 (0)