diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-09-25 13:25:41 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-09-25 13:25:41 +1000 |
commit | 99a2657a29e2d623c3568cd86b27cac13fb63140 (patch) | |
tree | 9023ee34d4ccc8dac11d07dc3978f13297d77411 /drivers/char | |
parent | 4e0c1159d83a658d1ffba5bc3442f4ec4cadb436 (diff) | |
download | kernel_samsung_aries-99a2657a29e2d623c3568cd86b27cac13fb63140.zip kernel_samsung_aries-99a2657a29e2d623c3568cd86b27cac13fb63140.tar.gz kernel_samsung_aries-99a2657a29e2d623c3568cd86b27cac13fb63140.tar.bz2 |
drm: use kernel macros
Make some of the DRM_ macros use the real kernel macros.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/drm/drmP.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index cf58a52..7922178 100644 --- 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)) |