diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-11-08 21:30:07 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-11-09 09:36:55 +0100 |
commit | 2e2b96ef7a9b71e1bf08439e363c18cf700bafec (patch) | |
tree | f846eeaaa5b5b9bde089369d7dbdc3fdb3325ae8 /include/drm/drm_encoder.h | |
parent | 71469385dbfde768b3431820606f9f0845c9d56c (diff) | |
download | linux-2e2b96ef7a9b71e1bf08439e363c18cf700bafec.tar.gz linux-2e2b96ef7a9b71e1bf08439e363c18cf700bafec.tar.bz2 linux-2e2b96ef7a9b71e1bf08439e363c18cf700bafec.zip |
drm: Update docs for legacy kms state
Point at the equivalent atomic state and explain that atomic drivers
shouldn't really depend upon legacy state.
Motivated by questions from Manasi about how this all is supposed to
work.
Cc: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171108203007.12274-1-daniel.vetter@ffwll.ch
Diffstat (limited to 'include/drm/drm_encoder.h')
-rw-r--r-- | include/drm/drm_encoder.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/drm/drm_encoder.h b/include/drm/drm_encoder.h index 8d8245ec0181..c3ca2278ea6e 100644 --- a/include/drm/drm_encoder.h +++ b/include/drm/drm_encoder.h @@ -88,7 +88,6 @@ struct drm_encoder_funcs { * @head: list management * @base: base KMS object * @name: human readable name, can be overwritten by the driver - * @crtc: currently bound CRTC * @bridge: bridge associated to the encoder * @funcs: control functions * @helper_private: mid-layer private data @@ -166,6 +165,11 @@ struct drm_encoder { */ uint32_t possible_clones; + /** + * @crtc: Currently bound CRTC, only really meaningful for non-atomic + * drivers. Atomic drivers should instead check + * &drm_connector_state.crtc. + */ struct drm_crtc *crtc; struct drm_bridge *bridge; const struct drm_encoder_funcs *funcs; |