projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e0c115
)
drm: use kernel macros
author
Dave Airlie
<airlied@starflyer.(none)>
Sun, 25 Sep 2005 03:25:41 +0000
(13:25 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Sun, 25 Sep 2005 03:25:41 +0000
(13:25 +1000)
Make some of the DRM_ macros use the real kernel macros.
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drmP.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/drmP.h
b/drivers/char/drm/drmP.h
index cf58a526a030db783b99a2357b9f6b86221b56ea..79221783a14c082895ec2de2ca33b68e5a5792ed 100644
(file)
--- a/
drivers/char/drm/drmP.h
+++ b/
drivers/char/drm/drmP.h
@@
-228,9
+228,9
@@
/** \name Internal types and structures */
/*@{*/
-#define DRM_ARRAY_SIZE(x)
(sizeof(x)/sizeof(x[0])
)
-#define DRM_MIN(a,b)
((a)<(b)?(a):(b)
)
-#define DRM_MAX(a,b)
((a)>(b)?(a):(b)
)
+#define DRM_ARRAY_SIZE(x)
ARRAY_SIZE(x
)
+#define DRM_MIN(a,b)
min(a,b
)
+#define DRM_MAX(a,b)
max(a,b
)
#define DRM_LEFTCOUNT(x) (((x)->rp + (x)->count - (x)->wp) % ((x)->count + 1))
#define DRM_BUFCOUNT(x) ((x)->count - DRM_LEFTCOUNT(x))