drm_fb_helper is *the* way of doing fbdev emulation so add a pointer to struct drm_device. This makes it possible to add callback helpers for .last_close and .output_poll_changed further reducing fbdev emulation footprint in drivers.
Signed-off-by: Noralf Trønnes noralf@tronnes.org --- include/drm/drm_device.h | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h index e21af87..3c104b1 100644 --- a/include/drm/drm_device.h +++ b/include/drm/drm_device.h @@ -17,6 +17,7 @@ struct drm_vblank_crtc; struct drm_sg_mem; struct drm_local_map; struct drm_vma_offset_manager; +struct drm_fb_helper;
struct inode;
@@ -185,6 +186,13 @@ struct drm_device { struct drm_vma_offset_manager *vma_offset_manager; /*@} */ int switch_power_state; + + /** + * @fbdev: + * + * Optional pointer to the fbdev emulation structure. + */ + struct drm_fb_helper *fbdev; };
#endif