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

drm: make drm_crtc_internal.h self-contained

Do not require users of drm_crtc_internal.h to include other
files just to let it build

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Link: https://patchwork.freedesktop.org/patch/msgid/20190526173535.32701-4-sam@ravnborg.org

+21 -5
+21 -5
drivers/gpu/drm/drm_crtc_internal.h
··· 31 31 * and are not exported to drivers. 32 32 */ 33 33 34 - enum drm_mode_status; 35 - enum drm_connector_force; 34 + #include <linux/types.h> 36 35 37 - struct drm_display_mode; 38 - struct work_struct; 39 - struct drm_connector; 36 + enum drm_color_encoding; 37 + enum drm_color_range; 38 + enum drm_connector_force; 39 + enum drm_mode_status; 40 + 41 + struct drm_atomic_state; 40 42 struct drm_bridge; 43 + struct drm_connector; 44 + struct drm_crtc; 45 + struct drm_device; 46 + struct drm_display_mode; 47 + struct drm_file; 48 + struct drm_framebuffer; 49 + struct drm_mode_create_dumb; 50 + struct drm_mode_fb_cmd2; 51 + struct drm_mode_fb_cmd; 52 + struct drm_mode_object; 53 + struct drm_plane; 54 + struct drm_property; 41 55 struct edid; 56 + struct kref; 57 + struct work_struct; 42 58 43 59 /* drm_crtc.c */ 44 60 int drm_mode_crtc_set_obj_prop(struct drm_mode_object *obj,