drm: Tweak drm_encoder_helper_funcs.enable kerneldoc
Subsystems (2)
PATCH 1/1 drm: Tweak drm_encoder_helper_funcs.enable kerneldoc
From: Sean Paul <[email protected]>
I copied the kerneldoc for encoder_funcs.atomic_enable from encoder_funcs.enable in a recent patch [1]. Sam rightly pointed out in the review that "for symmetry with" text is awkward [2]. So here's a patch to fix up the source of the awkward language.
[1] https://patchwork.freedesktop.org/patch/msgid/[email protected]
[2] https://patchwork.freedesktop.org/patch/msgid/[email protected]
--- include/drm/drm_modeset_helper_vtables.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
include/drm/drm_modeset_helper_vtables.h +5 -5
@@ -719,11 +719,11 @@ struct drm_encoder_helper_funcs {* hooks and call them from CRTC's callback by looping over all encoders * connected to it using for_each_encoder_on_crtc(). * -* This hook is used only by atomic helpers, for symmetry with @disable. -* Atomic drivers don't need to implement it if there's no need to -* enable anything at the encoder level. To ensure that runtime PM handling -* (using either DPMS or the new "ACTIVE" property) works -* @enable must be the inverse of @disable for atomic drivers. +* This hook is only used by atomic helpers, it is the opposite of +* @disable. Atomic drivers don't need to implement it if there's no +* need to enable anything at the encoder level. To ensure that +* runtime PM handling (using either DPMS or the new "ACTIVE" property) +* works @enable must be the inverse of @disable for atomic drivers. */ void (*enable)(struct drm_encoder *encoder);
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Sean Paul
From: Sean Paul <[email protected]>
I copied the kerneldoc for encoder_funcs.atomic_enable from encoder_funcs.enable in a recent patch [1]. Sam rightly pointed out in the review that "for symmetry with" text is awkward [2]. So here's a patch to fix up the source of the awkward language.
Looks good.
Quoted 6 lines
[1] https://patchwork.freedesktop.org/patch/msgid/[email protected]
[2] https://patchwork.freedesktop.org/patch/msgid/[email protected]Suggested-by Sam Ravnborg <[email protected]>Signed-off-by Sean Paul <[email protected]>
Quoted 27 lines
--- include/drm/drm_modeset_helper_vtables.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)include/drm/drm_modeset_helper_vtables.h +5
-5@@ -719,11 +719,11 @@ struct drm_encoder_helper_funcs {* hooks and call them from CRTC's callback by looping over all encoders * connected to it using for_each_encoder_on_crtc(). * -* This hook is used only by atomic helpers, for symmetry with @disable. -* Atomic drivers don't need to implement it if there's no need to -* enable anything at the encoder level. To ensure that runtime PM handling -* (using either DPMS or the new "ACTIVE" property) works -* @enable must be the inverse of @disable for atomic drivers. +* This hook is only used by atomic helpers, it is the opposite of +* @disable. Atomic drivers don't need to implement it if there's no +* need to enable anything at the encoder level. To ensure that +* runtime PM handling (using either DPMS or the new "ACTIVE" property) +* works @enable must be the inverse of @disable for atomic drivers. */ void (*enable)(struct drm_encoder *encoder);Signature · 1 line
Sean Paul, Software Engineer, Google / Chromium OS
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Sean Paul
AppliedQuoted 8 lines · Sam Ravnborg
Quoted 6 lines · Sean Paul
From: Sean Paul <[email protected]>
I copied the kerneldoc for encoder_funcs.atomic_enable from encoder_funcs.enable in a recent patch [1]. Sam rightly pointed out in the review that "for symmetry with" text is awkward [2]. So here's a patch to fix up the source of the awkward language.
Quoted 8 lines
Looks good.
Quoted 6 lines
[1] https://patchwork.freedesktop.org/patch/msgid/[email protected]
[2] https://patchwork.freedesktop.org/patch/msgid/[email protected]Suggested-by Sam Ravnborg <[email protected]>Signed-off-by Sean Paul <[email protected]>Reviewed-by Sam Ravnborg <[email protected]>
Applied to drm-misc-next with your R-b, thanks!
Sean
Quoted 28 lines
Quoted 28 lines
--- include/drm/drm_modeset_helper_vtables.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)include/drm/drm_modeset_helper_vtables.h +5
-5@@ -719,11 +719,11 @@ struct drm_encoder_helper_funcs {* hooks and call them from CRTC's callback by looping over all encoders * connected to it using for_each_encoder_on_crtc(). * -* This hook is used only by atomic helpers, for symmetry with @disable. -* Atomic drivers don't need to implement it if there's no need to -* enable anything at the encoder level. To ensure that runtime PM handling -* (using either DPMS or the new "ACTIVE" property) works -* @enable must be the inverse of @disable for atomic drivers. +* This hook is only used by atomic helpers, it is the opposite of +* @disable. Atomic drivers don't need to implement it if there's no +* need to enable anything at the encoder level. To ensure that +* runtime PM handling (using either DPMS or the new "ACTIVE" property) +* works @enable must be the inverse of @disable for atomic drivers. */ void (*enable)(struct drm_encoder *encoder);Signature · 1 line
Sean Paul, Software Engineer, Google / Chromium OS
Signature · 5 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel