projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e49db
)
drm/panic: Add a private field to struct drm_scanout_buffer
author
Jocelyn Falempe
<jfalempe@redhat.com>
Tue, 24 Jun 2025 09:01:10 +0000
(11:01 +0200)
committer
Maarten Lankhorst
<dev@lankhorst.se>
Fri, 27 Jun 2025 09:48:22 +0000
(11:48 +0200)
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>
include/drm/drm_panic.h
patch
|
blob
|
blame
|
history
diff --git
a/include/drm/drm_panic.h
b/include/drm/drm_panic.h
index 310c88c4d336bb2c31edffdb18e4b581005490d2..ac0e46b73436e9907326de29c393da3024876dc2 100644
(file)
--- 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