Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/crtc-helper: Remove most include statements from drm_crtc_helper.h

Remove most include statements from crm_crtc_helper.h and forward-
declare the contained types in drm_crtc_helper.h. Only keep <linux/types.h>
for the definition of 'bool'.

Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230116131235.18917-23-tzimmermann@suse.de

+9 -5
+9 -5
include/drm/drm_crtc_helper.h
··· 33 33 #ifndef __DRM_CRTC_HELPER_H__ 34 34 #define __DRM_CRTC_HELPER_H__ 35 35 36 - #include <linux/spinlock.h> 37 36 #include <linux/types.h> 38 - #include <linux/idr.h> 39 37 40 - #include <drm/drm_crtc.h> 41 - #include <drm/drm_modeset_helper_vtables.h> 42 - #include <drm/drm_modeset_helper.h> 38 + struct drm_atomic_state; 39 + struct drm_connector; 40 + struct drm_crtc; 41 + struct drm_device; 42 + struct drm_display_mode; 43 + struct drm_encoder; 44 + struct drm_framebuffer; 45 + struct drm_mode_set; 46 + struct drm_modeset_acquire_ctx; 43 47 44 48 void drm_helper_disable_unused_functions(struct drm_device *dev); 45 49 int drm_crtc_helper_set_config(struct drm_mode_set *set,