[PATCH] drivers/video: Use ARRAY_SIZE macro
authorTobias Klauser <tklauser@nuerscht.ch>
Mon, 27 Mar 2006 09:17:39 +0000 (01:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:58 +0000 (08:44 -0800)
commitd1ae418eef4ce763a95edec0b5fc095af5daca2e
tree251158f7887435cd058293c2532eafd722adff3a
parentb0c87978216836455ef5fbcac6df1ce6679750b0
[PATCH] drivers/video: Use ARRAY_SIZE macro

Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove
duplicates of ARRAY_SIZE.  Some coding style and trailing whitespaces are
also fixed.

Compile-tested where possible (some are other arch or BROKEN)

Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 files changed:
drivers/video/acornfb.c
drivers/video/asiliantfb.c
drivers/video/aty/aty128fb.c
drivers/video/aty/atyfb_base.c
drivers/video/aty/mach64_gx.c
drivers/video/chipsfb.c
drivers/video/console/fonts.c
drivers/video/imsttfb.c
drivers/video/macmodes.c
drivers/video/matrox/matroxfb_g450.c
drivers/video/matrox/matroxfb_maven.c
drivers/video/modedb.c
drivers/video/neofb.c
drivers/video/pmagb-b-fb.c
drivers/video/radeonfb.c
drivers/video/sstfb.c
drivers/video/virgefb.c