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

drm/i2c/ch7006: 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.

Move drm_crtc_helper.h to where it is needed.

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

+2 -1
+2
drivers/gpu/drm/i2c/ch7006_drv.c
··· 26 26 27 27 #include <linux/module.h> 28 28 29 + #include <drm/drm_crtc_helper.h> 30 + 29 31 #include "ch7006_priv.h" 30 32 31 33 /* DRM encoder functions */
-1
drivers/gpu/drm/i2c/ch7006_priv.h
··· 27 27 #ifndef __DRM_I2C_CH7006_PRIV_H__ 28 28 #define __DRM_I2C_CH7006_PRIV_H__ 29 29 30 - #include <drm/drm_crtc_helper.h> 31 30 #include <drm/drm_encoder_slave.h> 32 31 #include <drm/drm_probe_helper.h> 33 32 #include <drm/i2c/ch7006.h>