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:
f54d1e4
)
drm: Use ARRAY_SIZE macro when appropriate
author
Ahmed S. Darwish
<darwish.07@gmail.com>
Thu, 8 Feb 2007 23:30:10 +0000
(10:30 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Sun, 11 Mar 2007 01:07:16 +0000
(12:07 +1100)
Use ARRAY_SIZE macro already defined in kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_proc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/drm_proc.c
b/drivers/char/drm/drm_proc.c
index 7fd0da712142cdc78d9e96450e026e8550373404..b204498d1a2887ae58579538c89c89757d4fb539 100644
(file)
--- a/
drivers/char/drm/drm_proc.c
+++ b/
drivers/char/drm/drm_proc.c
@@
-72,7
+72,7
@@
static struct drm_proc_list {
#endif
};
-#define DRM_PROC_ENTRIES
(sizeof(drm_proc_list)/sizeof(drm_proc_list[0])
)
+#define DRM_PROC_ENTRIES
ARRAY_SIZE(drm_proc_list
)
/**
* Initialize the DRI proc filesystem for a device.