drm: move DRM_IF_VERSION to drm_internal.h
authorSam Ravnborg <sam@ravnborg.org>
Wed, 26 Dec 2018 21:03:47 +0000 (22:03 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Dec 2018 12:08:58 +0000 (13:08 +0100)
Move DRM_IF_VERSION out of drmP.h to allow users
to get rid of the drmP include.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
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>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181226210353.13993-1-sam@ravnborg.org
drivers/gpu/drm/drm_internal.h
include/drm/drmP.h

index c7a7d7ce5d1cbaf1531e329223c0ca2f759ff1cc..331112b2ae8878670346dde561054c2a22ce61ff 100644 (file)
@@ -26,6 +26,8 @@
 #define DRM_IF_MAJOR 1
 #define DRM_IF_MINOR 4
 
+#define DRM_IF_VERSION(maj, min) (maj << 16 | min)
+
 struct drm_prime_file_private;
 struct dma_buf;
 
index bdb0d5548f39ede087a64e626f34b215834733d5..db94ef00940e20b1b6bb2f6e0ea3441c2a9bc506 100644 (file)
@@ -94,8 +94,6 @@ struct dma_buf_attachment;
 struct pci_dev;
 struct pci_controller;
 
-#define DRM_IF_VERSION(maj, min) (maj << 16 | min)
-
 #define DRM_SWITCH_POWER_ON 0
 #define DRM_SWITCH_POWER_OFF 1
 #define DRM_SWITCH_POWER_CHANGING 2