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 <jfalempe@redhat.com> Link: https://lore.kernel.org/r/20250624091501.257661-2-jfalempe@redhat.com Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
1 parent 80e49db commit 3dd922c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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)