Skip to content

Commit 5685ca0

Browse files
committed
drm/tinydrm: Fix doc build warnings
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device' drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush' drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush' Move struct member docs inline so it's not missed next time. Cc: David Lechner <david@lechnology.com> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: David Lechner <david@lechnology.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180710150518.10528-1-noralf@tronnes.org
1 parent 03e3ec9 commit 5685ca0

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

‎drivers/gpu/drm/tinydrm/mipi-dbi.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = {
260260
/**
261261
* mipi_dbi_enable_flush - MIPI DBI enable helper
262262
* @mipi: MIPI DBI structure
263+
* @crtc_state: CRTC state
264+
* @plane_state: Plane state
263265
*
264266
* This function sets &mipi_dbi->enabled, flushes the whole framebuffer and
265267
* enables the backlight. Drivers can use this in their

‎include/drm/tinydrm/tinydrm.h‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,31 @@
1616

1717
/**
1818
* struct tinydrm_device - tinydrm device
19-
* @drm: DRM device
20-
* @pipe: Display pipe structure
21-
* @dirty_lock: Serializes framebuffer flushing
22-
* @fb_funcs: Framebuffer functions used when creating framebuffers
2319
*/
2420
struct tinydrm_device {
21+
/**
22+
* @drm: DRM device
23+
*/
2524
struct drm_device *drm;
25+
26+
/**
27+
* @pipe: Display pipe structure
28+
*/
2629
struct drm_simple_display_pipe pipe;
30+
31+
/**
32+
* @dirty_lock: Serializes framebuffer flushing
33+
*/
2734
struct mutex dirty_lock;
35+
36+
/**
37+
* @fb_funcs: Framebuffer functions used when creating framebuffers
38+
*/
2839
const struct drm_framebuffer_funcs *fb_funcs;
40+
41+
/**
42+
* @fb_dirty: Framebuffer dirty callback
43+
*/
2944
int (*fb_dirty)(struct drm_framebuffer *framebuffer,
3045
struct drm_file *file_priv, unsigned flags,
3146
unsigned color, struct drm_clip_rect *clips,

0 commit comments

Comments
 (0)