Skip to contentSkip to conversation

drm: Add documentation for struct drm_pane_size_hint

PATCH In review abid-sayyad 2 participants 2 messages Aug 1, 2024 – Aug 2, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm: Add documentation for struct drm_pane_size_hint

Fixed warning for the following:
./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member
'width' not described in 'drm_plane_size_hint'
./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member
'height' not described in 'drm_plane_size_hint'

---
My sincere apologies for the spam and the patch subject error Changes in v2:
- Adress review feedback regarding indentation in the fix
- Link to v1
https://lore.kernel.org/all/[email protected]/

 include/uapi/drm/drm_mode.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/uapi/drm/drm_mode.h +6 -0
index d390011b89b4..9d398335d871 100644
@@ -864,7 +864,13 @@ struct drm_color_lut {
  * array of struct drm_plane_size_hint.
  */
 struct drm_plane_size_hint {
+	/**
+	 * @width: width of the plane in pixels.
+	 */
 	__u16 width;
+	/**
+	 * @height: height of the plane in pixels.
+	 */
 	__u16 height;
 };
 

--
2.39.2

Reviewed-by on v2 1/1
#1 lore raw
Quoted 9 lines · abid-sayyad

Fixed warning for the following:
./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member
'width' not described in 'drm_plane_size_hint'
./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member
'height' not described in 'drm_plane_size_hint'

---
My sincere apologies for the spam and the patch subject error

Usually there's no need to resend, at least not immediately, because of issues in the subject or the commit message. Many of them can be fixed while applying, and if not, you'll be asked to fix and resend.

Quoted 29 lines

Changes in v2:
- Adress review feedback regarding indentation in the fix
- Link to v1
https://lore.kernel.org/all/[email protected]/

 include/uapi/drm/drm_mode.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/uapi/drm/drm_mode.h +6 -1
index d390011b89b4..9d398335d871 100644
@@ -864,7 +864,13 @@ struct drm_color_lut {
  * array of struct drm_plane_size_hint.
  */
 struct drm_plane_size_hint {
+	/**
+	 * @width: width of the plane in pixels.
+	 */
 	__u16 width;
+	/**
+	 * @height: height of the plane in pixels.
+	 */
 	__u16 height;
 };
 
--

2.39.2

Signature · 1 line
Jani Nikula, Intel