drm: remove include of drmP.h from drm_modeset_helper.h
PATCH v2 10/14 drm: remove include of drmP.h from drm_modeset_helper.h
drmP.h is an relic from the days when there was a single header file. To enable the removal of drmP.h from all users drop include of drmP.h from drm_modeset_helper.h.
A few files relied on the file included in drmP.h - add explicit include statements to these files.
Build tested with arm and x86.
v2:
- Add forward declarations to drm_modeset_helper.h (Laurent Pinchart)
Signed-off-by Sam Ravnborg <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
Cc Alexey Brodkin <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Archit Taneja <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Sean Paul <[email protected]>
Cc Kieran Bingham <[email protected]>
--- drivers/gpu/drm/arc/arcpgu_sim.c | 1 + drivers/gpu/drm/bridge/cdns-dsi.c | 2 ++ drivers/gpu/drm/drm_modeset_helper.c | 2 ++ drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 + include/drm/drm_modeset_helper.h | 6 +++++- 5 files changed, 11 insertions(+), 1 deletion(-)
drivers/gpu/drm/arc/arcpgu_sim.c +1 -0
@@ -14,6 +14,7 @@* */ +#include <drm/drm_device.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_atomic_helper.h>
drivers/gpu/drm/bridge/cdns-dsi.c +2 -0
@@ -8,11 +8,13 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_crtc_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_panel.h> #include <video/mipi_display.h> #include <linux/clk.h> +#include <linux/interrupt.h> #include <linux/iopoll.h> #include <linux/module.h> #include <linux/of_address.h>
drivers/gpu/drm/drm_modeset_helper.c +2 -0
@@ -23,8 +23,10 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_fourcc.h> #include <drm/drm_modeset_helper.h> #include <drm/drm_plane_helper.h> +#include <drm/drm_print.h> /** * DOC: aux kms helpers
drivers/gpu/drm/rcar-du/rcar_lvds.c +1 -0
@@ -10,6 +10,7 @@#include <linux/clk.h> #include <linux/delay.h> #include <linux/io.h> +#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_graph.h>
include/drm/drm_modeset_helper.h +5 -1
@@ -23,7 +23,11 @@#ifndef __DRM_KMS_HELPER_H__#define __DRM_KMS_HELPER_H__ -#include <drm/drmP.h> +struct drm_crtc ; +struct drm_crtc_funcs ; +struct drm_device ; +struct drm_framebuffer ; +struct drm_mode_fb_cmd2 ;void drm_helper_move_panel_connectors_to_head (struct drm_device *);
Signature · 1 line
2.12.0