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

drm/kmb: Remove unnecessary include statements for drm_crtc_helper.h

Several source files include drm_crtc_helper.h without needing it or
only to get its transitive include statements; leading to unnecessary
compile-time dependencies.

Drop drm_crtc_helper.h where possible.

v2:
* update commit message (Sam)

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-12-tzimmermann@suse.de

-2
-1
drivers/gpu/drm/kmb/kmb_crtc.c
··· 8 8 #include <drm/drm_atomic.h> 9 9 #include <drm/drm_atomic_helper.h> 10 10 #include <drm/drm_crtc.h> 11 - #include <drm/drm_crtc_helper.h> 12 11 #include <drm/drm_print.h> 13 12 #include <drm/drm_vblank.h> 14 13 #include <drm/drm_modeset_helper_vtables.h>
-1
drivers/gpu/drm/kmb/kmb_plane.c
··· 7 7 #include <drm/drm_atomic_helper.h> 8 8 #include <drm/drm_blend.h> 9 9 #include <drm/drm_crtc.h> 10 - #include <drm/drm_crtc_helper.h> 11 10 #include <drm/drm_fb_dma_helper.h> 12 11 #include <drm/drm_fourcc.h> 13 12 #include <drm/drm_framebuffer.h>