From: Jocelyn Falempe Date: Tue, 24 Jun 2025 09:01:10 +0000 (+0200) Subject: drm/panic: Add a private field to struct drm_scanout_buffer X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dd922c418903be7dd8df7212f968e94d0fe73c7;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20250624091501.257661-2-jfalempe@redhat.com Signed-off-by: Maarten Lankhorst --- diff --git a/include/drm/drm_panic.h b/include/drm/drm_panic.h index 310c88c4d336b..ac0e46b73436e 100644 --- a/include/drm/drm_panic.h +++ b/include/drm/drm_panic.h @@ -72,6 +72,12 @@ struct drm_scanout_buffer { void (*set_pixel)(struct drm_scanout_buffer *sb, unsigned int x, unsigned int y, u32 color); + /** + * @private: private pointer that you can use in the callbacks + * set_pixel() + */ + void *private; + }; #ifdef CONFIG_DRM_PANIC