aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/synclinkmp.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2006-01-09 23:54:02 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:56 -0500
commitfe971071a89c5c5184fc9f3482c7a8e997cf0520 (patch)
tree74a29e80d5636255f33c750482497a32d8d3491f /drivers/char/synclinkmp.c
parent3c6bee1d4037a5c569f30d40bd852a57ba250912 (diff)
[PATCH] drivers/char: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove duplicates of ARRAY_SIZE. Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/synclinkmp.c')
-rw-r--r--drivers/char/synclinkmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/synclinkmp.c b/drivers/char/synclinkmp.c
index ee5a40be9f99..a9467e7d3747 100644
--- a/drivers/char/synclinkmp.c
+++ b/drivers/char/synclinkmp.c
@@ -5104,7 +5104,7 @@ void tx_load_dma_buffer(SLMP_INFO *info, const char *buf, unsigned int count)
5104int register_test(SLMP_INFO *info) 5104int register_test(SLMP_INFO *info)
5105{ 5105{
5106 static unsigned char testval[] = {0x00, 0xff, 0xaa, 0x55, 0x69, 0x96}; 5106 static unsigned char testval[] = {0x00, 0xff, 0xaa, 0x55, 0x69, 0x96};
5107 static unsigned int count = sizeof(testval)/sizeof(unsigned char); 5107 static unsigned int count = ARRAY_SIZE(testval);
5108 unsigned int i; 5108 unsigned int i;
5109 int rc = TRUE; 5109 int rc = TRUE;
5110 unsigned long flags; 5110 unsigned long flags;
@@ -5422,7 +5422,7 @@ int memory_test(SLMP_INFO *info)
5422{ 5422{
5423 static unsigned long testval[] = { 0x0, 0x55555555, 0xaaaaaaaa, 5423 static unsigned long testval[] = { 0x0, 0x55555555, 0xaaaaaaaa,
5424 0x66666666, 0x99999999, 0xffffffff, 0x12345678 }; 5424 0x66666666, 0x99999999, 0xffffffff, 0x12345678 };
5425 unsigned long count = sizeof(testval)/sizeof(unsigned long); 5425 unsigned long count = ARRAY_SIZE(testval);
5426 unsigned long i; 5426 unsigned long i;
5427 unsigned long limit = SCA_MEM_SIZE/sizeof(unsigned long); 5427 unsigned long limit = SCA_MEM_SIZE/sizeof(unsigned long);
5428 unsigned long * addr = (unsigned long *)info->memory_base; 5428 unsigned long * addr = (unsigned long *)info->memory_base;