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

drm/aspeed: 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-6-tzimmermann@suse.de

-3
-1
drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c
··· 5 5 #include <linux/reset.h> 6 6 #include <linux/regmap.h> 7 7 8 - #include <drm/drm_crtc_helper.h> 9 8 #include <drm/drm_device.h> 10 9 #include <drm/drm_fb_dma_helper.h> 11 10 #include <drm/drm_fourcc.h>
-1
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
··· 14 14 #include <linux/reset.h> 15 15 16 16 #include <drm/drm_atomic_helper.h> 17 - #include <drm/drm_crtc_helper.h> 18 17 #include <drm/drm_device.h> 19 18 #include <drm/drm_fbdev_generic.h> 20 19 #include <drm/drm_gem_dma_helper.h>
-1
drivers/gpu/drm/aspeed/aspeed_gfx_out.c
··· 3 3 4 4 #include <drm/drm_atomic_helper.h> 5 5 #include <drm/drm_connector.h> 6 - #include <drm/drm_crtc_helper.h> 7 6 #include <drm/drm_edid.h> 8 7 #include <drm/drm_probe_helper.h> 9 8