Skip to contentSkip to conversation

drm/panel: add kernel doc for size attributes in panel_desc

PATCH Applied Ulrich Ölmann 2 participants 2 messages Dec 4, 2015 – Dec 16, 2015

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

PATCH 1/1 drm/panel: add kernel doc for size attributes in panel_desc

Document that 'width' and 'height' are measured in millimeters.

---
 drivers/gpu/drm/panel/panel-simple.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +4 -0
index ada97a0..8c194ed 100644
@@ -44,6 +44,10 @@ struct panel_desc {
 
 	unsigned int bpc;
 
+	/**
+	 * @width: the width of the panel (in millimeters)
+	 * @height: the height of the panel (in millimeters)
+	 */
 	struct {
 		unsigned int width;
 		unsigned int height;
Signature · 6 lines
2.6.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 6 lines · Ulrich Ölmann

Document that 'width' and 'height' are measured in millimeters.

---
 drivers/gpu/drm/panel/panel-simple.c | 4 ++++
 1 file changed, 4 insertions(+)

I've applied this, with a slightly reworded comment, to clarify that it is the size of the active display area:

	/**
	 * @width: width (in millimeters) of the panel's active display area
	 * @height: height (in millimeters) of the panel's active display area
	 */

Thanks,
Thierry

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel