Skip to content

Commit 3dd922c

Browse files
Jocelyn FalempeMaarten Lankhorst
authored andcommitted
drm/panic: Add a private field to struct drm_scanout_buffer
This allows driver to set some private data in get_scanout_buffer(), and re-use them in set_pixel() callback. Signed-off-by: Jocelyn Falempe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maarten Lankhorst <[email protected]>
1 parent 80e49db commit 3dd922c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/drm/drm_panic.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ struct drm_scanout_buffer {
7272
void (*set_pixel)(struct drm_scanout_buffer *sb, unsigned int x,
7373
unsigned int y, u32 color);
7474

75+
/**
76+
* @private: private pointer that you can use in the callbacks
77+
* set_pixel()
78+
*/
79+
void *private;
80+
7581
};
7682

7783
#ifdef CONFIG_DRM_PANIC

0 commit comments

Comments
 (0)