Skip to content

Commit

Permalink
drm/doc: switch drm_connector_state to inline comments
Browse files Browse the repository at this point in the history
For consistency. Also spelled out the docs for ->best_encoder a bit
more while at it.

Reviewed-by: Sean Paul <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
danvet committed Jul 13, 2018
1 parent 3479fc2 commit aab999a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions include/drm/drm_connector.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,9 @@ struct drm_tv_connector_state {

/**
* struct drm_connector_state - mutable connector state
* @connector: backpointer to the connector
* @best_encoder: can be used by helpers and drivers to select the encoder
* @state: backpointer to global drm_atomic_state
* @tv: TV connector state
*/
struct drm_connector_state {
/** @connector: backpointer to the connector */
struct drm_connector *connector;

/**
Expand All @@ -394,6 +391,13 @@ struct drm_connector_state {
*/
struct drm_crtc *crtc;

/**
* @best_encoder:
*
* Used by the atomic helpers to select the encoder, through the
* &drm_connector_helper_funcs.atomic_best_encoder or
* &drm_connector_helper_funcs.best_encoder callbacks.
*/
struct drm_encoder *best_encoder;

/**
Expand All @@ -402,6 +406,7 @@ struct drm_connector_state {
*/
enum drm_link_status link_status;

/** @state: backpointer to global drm_atomic_state */
struct drm_atomic_state *state;

/**
Expand All @@ -411,6 +416,7 @@ struct drm_connector_state {
*/
struct drm_crtc_commit *commit;

/** @tv: TV connector state */
struct drm_tv_connector_state tv;

/**
Expand Down

0 comments on commit aab999a

Please sign in to comment.