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>
This commit is contained in:
parent
80e49db501
commit
3dd922c418
|
@ -72,6 +72,12 @@ struct drm_scanout_buffer {
|
||||||
void (*set_pixel)(struct drm_scanout_buffer *sb, unsigned int x,
|
void (*set_pixel)(struct drm_scanout_buffer *sb, unsigned int x,
|
||||||
unsigned int y, u32 color);
|
unsigned int y, u32 color);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private: private pointer that you can use in the callbacks
|
||||||
|
* set_pixel()
|
||||||
|
*/
|
||||||
|
void *private;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_DRM_PANIC
|
#ifdef CONFIG_DRM_PANIC
|
||||||
|
|
Loading…
Reference in New Issue