drm/vkms: Fix kernel-doc parameter and member names
PATCH 1/1 drm/vkms: Fix kernel-doc parameter and member names
A handful of kernel-doc entries name things that do not exist. struct vkms_output documents encoder and connector and misspells wb_connector, struct vkms_connector calls its base member drm, vkms_crtc_init() lists a crtc argument it does not take, the CRTC plane helpers say crtc_config instead of crtc_cfg, and vkms_config_plane_get_type() is written without the get.
struct vkms_device used a dash instead of a colon, so its entries were being ignored rather than warned about. Switch it over and drop output, which is not a member either.
---
@vblank_hrtimer and @period_ns in struct vkms_output are stale too, but they are already removed by Thomas Zimmermann's pending patch, so this one leaves them alone:
https://lore.kernel.org/all/[email protected]/
drivers/gpu/drm/vkms/vkms_config.h | 6 +++--- drivers/gpu/drm/vkms/vkms_connector.h | 2 +- drivers/gpu/drm/vkms/vkms_drv.h | 11 ++++------- 3 files changed, 8 insertions(+), 11 deletions(-)
drivers/gpu/drm/vkms/vkms_config.h +3 -3
@@ -269,7 +269,7 @@ struct vkms_config_plane *vkms_config_create_plane(struct vkms_config *config);void vkms_config_destroy_plane (struct vkms_config_plane *plane_cfg);/** -* vkms_config_plane_type() - Return the plane type +* vkms_config_plane_get_type() - Return the plane type * @plane_cfg: Plane to get the type from */ static inline enum drm_plane_type
@@ -373,7 +373,7 @@ vkms_config_crtc_set_writeback(struct vkms_config_crtc *crtc_cfg,/** * vkms_config_crtc_primary_plane() - Return the primary plane for a CRTC * @config: Configuration containing the CRTC -* @crtc_config: Target CRTC +* @crtc_cfg: Target CRTC * * Note that, if multiple primary planes are found, the first one is returned. * In this case, the configuration will be invalid. See vkms_config_is_valid().
@@ -387,7 +387,7 @@ struct vkms_config_plane *vkms_config_crtc_primary_plane(const struct vkms_confi/** * vkms_config_crtc_cursor_plane() - Return the cursor plane for a CRTC * @config: Configuration containing the CRTC -* @crtc_config: Target CRTC +* @crtc_cfg: Target CRTC * * Note that, if multiple cursor planes are found, the first one is returned. * In this case, the configuration will be invalid. See vkms_config_is_valid().
drivers/gpu/drm/vkms/vkms_connector.h +1 -1
@@ -11,7 +11,7 @@/** * struct vkms_connector - VKMS custom type wrapping around the DRM connector * -* @drm: Base DRM connector +* @base: Base DRM connector */ struct vkms_connector {struct drm_connector base;
drivers/gpu/drm/vkms/vkms_drv.h +4 -7
@@ -202,9 +202,8 @@ struct vkms_crtc_state {* struct vkms_output - Internal representation of all output components in VKMS * * @crtc: Base CRTC in DRM -* @encoder: DRM encoder used for this output -* @connector: DRM connector used for this output -* @wb_connecter: DRM writeback connector used for this output +* @wb_connector: DRM writeback connector used for this output +* @wb_encoder: DRM encoder used for this output * @vblank_hrtimer: Timer used to trigger the vblank * @period_ns: vblank period, in nanoseconds, used to configure @vblank_hrtimer and to compute * vblank timestamps
@@ -234,9 +233,8 @@ struct vkms_config_plane;/** * struct vkms_device - Description of a VKMS device * -* @drm - Base device in DRM -* @faux_dev - Associated faux device -* @output - Configuration and sub-components of the VKMS device +* @drm: Base device in DRM +* @faux_dev: Associated faux device * @config: Configuration used in this VKMS device */ struct vkms_device {
@@ -284,7 +282,6 @@ void vkms_destroy(struct vkms_config *config);/** * vkms_crtc_init() - Initialize a CRTC for VKMS * @dev: DRM device associated with the VKMS buffer -* @crtc: uninitialized CRTC device * @primary: primary plane to attach to the CRTC * @cursor: plane to attach to the CRTC */
Signature · 1 line
2.46.0
Quoted 7 lines · Aryan Sinha
A handful of kernel-doc entries name things that do not exist. struct
vkms_outputdocuments encoder and connector and misspellswb_connector, structvkms_connectorcalls its base member drm,vkms_crtc_init()lists a crtc argument it does not take, the CRTC plane helpers saycrtc_configinstead ofcrtc_cfg, andvkms_config_plane_get_type()is written without the get.
Quoted 5 lines
struct
vkms_deviceused a dash instead of a colon, so its entries were being ignored rather than warned about. Switch it over and drop output, which is not a member either.Signed-off-by Aryan Sinha <[email protected]>
Quoted 90 lines
---
@vblank_hrtimer and @period_ns in structvkms_outputare stale too, but they are already removed by Thomas Zimmermann's pending patch, so this one leaves them alone:
https://lore.kernel.org/all/[email protected]/drivers/gpu/drm/vkms/vkms_config.h | 6 +++--- drivers/gpu/drm/vkms/vkms_connector.h | 2 +- drivers/gpu/drm/vkms/vkms_drv.h | 11 ++++------- 3 files changed, 8 insertions(+), 11 deletions(-)drivers/gpu/drm/vkms/vkms_config.h +3
-3@@ -269,7 +269,7 @@ struct vkms_config_plane *vkms_config_create_plane(struct vkms_config *config);void vkms_config_destroy_plane (struct vkms_config_plane *plane_cfg);/** -* vkms_config_plane_type() - Return the plane type +* vkms_config_plane_get_type() - Return the plane type * @plane_cfg: Plane to get the type from */ static inline enum drm_plane_type@@ -373,7 +373,7 @@ vkms_config_crtc_set_writeback(struct vkms_config_crtc *crtc_cfg,/** * vkms_config_crtc_primary_plane() - Return the primary plane for a CRTC * @config: Configuration containing the CRTC -* @crtc_config: Target CRTC +* @crtc_cfg: Target CRTC * * Note that, if multiple primary planes are found, the first one is returned. * In this case, the configuration will be invalid. See vkms_config_is_valid(). @@ -387,7 +387,7 @@ struct vkms_config_plane *vkms_config_crtc_primary_plane(const struct vkms_confi/** * vkms_config_crtc_cursor_plane() - Return the cursor plane for a CRTC * @config: Configuration containing the CRTC -* @crtc_config: Target CRTC +* @crtc_cfg: Target CRTC * * Note that, if multiple cursor planes are found, the first one is returned. * In this case, the configuration will be invalid. See vkms_config_is_valid(). drivers/gpu/drm/vkms/vkms_connector.h +1
-1@@ -11,7 +11,7 @@/** * struct vkms_connector - VKMS custom type wrapping around the DRM connector * -* @drm: Base DRM connector +* @base: Base DRM connector */ struct vkms_connector {struct drm_connector base;drivers/gpu/drm/vkms/vkms_drv.h +4
-7@@ -202,9 +202,8 @@ struct vkms_crtc_state {* struct vkms_output - Internal representation of all output components in VKMS * * @crtc: Base CRTC in DRM -* @encoder: DRM encoder used for this output -* @connector: DRM connector used for this output -* @wb_connecter: DRM writeback connector used for this output +* @wb_connector: DRM writeback connector used for this output +* @wb_encoder: DRM encoder used for this output * @vblank_hrtimer: Timer used to trigger the vblank * @period_ns: vblank period, in nanoseconds, used to configure @vblank_hrtimer and to compute * vblank timestamps @@ -234,9 +233,8 @@ struct vkms_config_plane;/** * struct vkms_device - Description of a VKMS device * -* @drm - Base device in DRM -* @faux_dev - Associated faux device -* @output - Configuration and sub-components of the VKMS device +* @drm: Base device in DRM +* @faux_dev: Associated faux device * @config: Configuration used in this VKMS device */ struct vkms_device {@@ -284,7 +282,6 @@ void vkms_destroy(struct vkms_config *config);/** * vkms_crtc_init() - Initialize a CRTC for VKMS * @dev: DRM device associated with the VKMS buffer -* @crtc: uninitialized CRTC device * @primary: primary plane to attach to the CRTC * @cursor: plane to attach to the CRTC */
Quoted 8 lines · Aryan Sinha
A handful of kernel-doc entries name things that do not exist. struct
vkms_outputdocuments encoder and connector and misspellswb_connector, structvkms_connectorcalls its base member drm,vkms_crtc_init()lists a crtc argument it does not take, the CRTC plane helpers saycrtc_configinstead ofcrtc_cfg, andvkms_config_plane_get_type()is written without the get.[...]
Applied, thanks!
[1/1] drm/vkms: Fix kernel-doc parameter and member names
commit: 55f54b0dc193f4c9a78ae3390e3b0da6b228b4a4
Best regards,
Signature · 1 line
Louis Chauvet <[email protected]>