Commit 874ee2d6 authored by Thomas Zimmermann's avatar Thomas Zimmermann

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

Directly include required headers and drop drm_crtc_helper.h where
possible.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230116131235.18917-14-tzimmermann@suse.de
parent 6ab5001e
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
*/ */
#include <drm/drm_crtc_helper.h> #include <drm/drm_crtc_helper.h>
#include <drm/drm_fourcc.h> #include <drm/drm_fourcc.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_plane_helper.h> #include <drm/drm_plane_helper.h>
#include <drm/drm_vblank.h> #include <drm/drm_vblank.h>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
* DEALINGS IN THE SOFTWARE. * DEALINGS IN THE SOFTWARE.
*/ */
#include <drm/drm_crtc_helper.h> #include <drm/drm_modeset_helper_vtables.h>
#include "nouveau_drv.h" #include "nouveau_drv.h"
#include "nouveau_encoder.h" #include "nouveau_encoder.h"
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
* DEALINGS IN THE SOFTWARE. * DEALINGS IN THE SOFTWARE.
*/ */
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fourcc.h> #include <drm/drm_fourcc.h>
#include <drm/drm_modeset_helper_vtables.h>
#include "nouveau_drv.h" #include "nouveau_drv.h"
#include "nouveau_reg.h" #include "nouveau_reg.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* *
*/ */
#include <drm/drm_crtc_helper.h>
#include "nouveau_drv.h" #include "nouveau_drv.h"
#include "nouveau_encoder.h" #include "nouveau_encoder.h"
#include "nouveau_crtc.h" #include "nouveau_crtc.h"
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "nouveau_connector.h" #include "nouveau_connector.h"
#include "nouveau_crtc.h" #include "nouveau_crtc.h"
#include "hw.h" #include "hw.h"
#include <drm/drm_crtc_helper.h> #include <drm/drm_modeset_helper_vtables.h>
#include <drm/i2c/ch7006.h> #include <drm/i2c/ch7006.h>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
*/ */
#include <drm/drm_crtc_helper.h> #include <drm/drm_crtc_helper.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_probe_helper.h> #include <drm/drm_probe_helper.h>
#include "nouveau_drv.h" #include "nouveau_drv.h"
#include "nouveau_reg.h" #include "nouveau_reg.h"
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_vblank.h> #include <drm/drm_vblank.h>
#include "nouveau_connector.h" #include "nouveau_connector.h"
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <linux/dynamic_debug.h> #include <linux/dynamic_debug.h>
#include <drm/drm_aperture.h> #include <drm/drm_aperture.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_drv.h> #include <drm/drm_drv.h>
#include <drm/drm_fbdev_generic.h> #include <drm/drm_fbdev_generic.h>
#include <drm/drm_gem_ttm_helper.h> #include <drm/drm_gem_ttm_helper.h>
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#include <linux/vgaarb.h> #include <linux/vgaarb.h>
#include <linux/vga_switcheroo.h> #include <linux/vga_switcheroo.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
#include "nouveau_drv.h" #include "nouveau_drv.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment