diff options
author | Dave Airlie <airlied@linux.ie> | 2006-08-07 06:07:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-09-21 15:32:30 -0400 |
commit | 3d77461ecd7fb92bb888f69478e3518b3c947ce3 (patch) | |
tree | 8f5c01d7d50873e9361aa50a070f633bb77f838c /drivers/char/drm/drmP.h | |
parent | e478bec0ba0a83a48a0f6982934b6de079e7e6b3 (diff) |
drm: cleanup old compat code and DRM fns from Linux only code
This patch removes some of the old compatibility macros from the DRM,
and removes use of DRM wrappers from Linux specific code.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r-- | drivers/char/drm/drmP.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index d2a56182bc35..cccfdb720e96 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h | |||
@@ -141,16 +141,6 @@ | |||
141 | /*@}*/ | 141 | /*@}*/ |
142 | 142 | ||
143 | /***********************************************************************/ | 143 | /***********************************************************************/ |
144 | /** \name Backward compatibility section */ | ||
145 | /*@{*/ | ||
146 | |||
147 | #define DRM_RPR_ARG(vma) vma, | ||
148 | |||
149 | #define VM_OFFSET(vma) ((vma)->vm_pgoff << PAGE_SHIFT) | ||
150 | |||
151 | /*@}*/ | ||
152 | |||
153 | /***********************************************************************/ | ||
154 | /** \name Macros to make printk easier */ | 144 | /** \name Macros to make printk easier */ |
155 | /*@{*/ | 145 | /*@{*/ |
156 | 146 | ||
@@ -211,8 +201,6 @@ | |||
211 | /*@{*/ | 201 | /*@{*/ |
212 | 202 | ||
213 | #define DRM_ARRAY_SIZE(x) ARRAY_SIZE(x) | 203 | #define DRM_ARRAY_SIZE(x) ARRAY_SIZE(x) |
214 | #define DRM_MIN(a,b) min(a,b) | ||
215 | #define DRM_MAX(a,b) max(a,b) | ||
216 | 204 | ||
217 | #define DRM_LEFTCOUNT(x) (((x)->rp + (x)->count - (x)->wp) % ((x)->count + 1)) | 205 | #define DRM_LEFTCOUNT(x) (((x)->rp + (x)->count - (x)->wp) % ((x)->count + 1)) |
218 | #define DRM_BUFCOUNT(x) ((x)->count - DRM_LEFTCOUNT(x)) | 206 | #define DRM_BUFCOUNT(x) ((x)->count - DRM_LEFTCOUNT(x)) |