diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-04-02 06:29:46 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-04-22 05:18:12 -0400 |
commit | f9b0e251dfbf2c4da642ec9210db29a7ac63b81a (patch) | |
tree | 9344941cc3a0e578dcfe88da49b016e3ff90c44b /Documentation/DocBook | |
parent | 0967e6a5070e336507ce52f09f7297413b966981 (diff) |
drm: make mode_valid callback optional
Many drm connectors do not need mode validation.
The patch makes this callback optional and removes dumb implementations.
v2: Rebase:
- imx move to a shared (but still dummy) ->mode_valid implementation.
- probe helpers have been extracted to drm_probe_helper.c
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> (v1)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r-- | Documentation/DocBook/drm.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index 677a02553ec0..c72e146e58d3 100644 --- a/Documentation/DocBook/drm.tmpl +++ b/Documentation/DocBook/drm.tmpl | |||
@@ -1903,8 +1903,8 @@ void intel_crt_init(struct drm_device *dev) | |||
1903 | <para> | 1903 | <para> |
1904 | The function filters out modes larger than | 1904 | The function filters out modes larger than |
1905 | <parameter>max_width</parameter> and <parameter>max_height</parameter> | 1905 | <parameter>max_width</parameter> and <parameter>max_height</parameter> |
1906 | if specified. It then calls the connector | 1906 | if specified. It then calls the optional connector |
1907 | <methodname>mode_valid</methodname> helper operation for each mode in | 1907 | <methodname>mode_valid</methodname> helper operation for each mode in |
1908 | the probed list to check whether the mode is valid for the connector. | 1908 | the probed list to check whether the mode is valid for the connector. |
1909 | </para> | 1909 | </para> |
1910 | </listitem> | 1910 | </listitem> |
@@ -2265,7 +2265,7 @@ void intel_crt_init(struct drm_device *dev) | |||
2265 | <para> | 2265 | <para> |
2266 | Verify whether a mode is valid for the connector. Return MODE_OK for | 2266 | Verify whether a mode is valid for the connector. Return MODE_OK for |
2267 | supported modes and one of the enum drm_mode_status values (MODE_*) | 2267 | supported modes and one of the enum drm_mode_status values (MODE_*) |
2268 | for unsupported modes. This operation is mandatory. | 2268 | for unsupported modes. This operation is optional. |
2269 | </para> | 2269 | </para> |
2270 | <para> | 2270 | <para> |
2271 | As the mode rejection reason is currently not used beside for | 2271 | As the mode rejection reason is currently not used beside for |