Skip to content

Commit ecb2e2f

Browse files
sravnborgdanvet
authored andcommitted
drm: move DRM_IF_VERSION to drm_internal.h
Move DRM_IF_VERSION out of drmP.h to allow users to get rid of the drmP include. Signed-off-by: Sam Ravnborg <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Sean Paul <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 183d9dc commit ecb2e2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/drm_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#define DRM_IF_MAJOR 1
2727
#define DRM_IF_MINOR 4
2828

29+
#define DRM_IF_VERSION(maj, min) (maj << 16 | min)
30+
2931
struct drm_prime_file_private;
3032
struct dma_buf;
3133

include/drm/drmP.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ struct dma_buf_attachment;
9494
struct pci_dev;
9595
struct pci_controller;
9696

97-
#define DRM_IF_VERSION(maj, min) (maj << 16 | min)
98-
9997
#define DRM_SWITCH_POWER_ON 0
10098
#define DRM_SWITCH_POWER_OFF 1
10199
#define DRM_SWITCH_POWER_CHANGING 2

0 commit comments

Comments
 (0)