diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-01-09 23:54:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:56 -0500 |
commit | fe971071a89c5c5184fc9f3482c7a8e997cf0520 (patch) | |
tree | 74a29e80d5636255f33c750482497a32d8d3491f /drivers/char/sx.c | |
parent | 3c6bee1d4037a5c569f30d40bd852a57ba250912 (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/sx.c')
-rw-r--r-- | drivers/char/sx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/sx.c b/drivers/char/sx.c index 3ad758a9a1dc..564f31778eb3 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c | |||
@@ -345,9 +345,9 @@ static int si_probe_addrs[]= {0xc0000, 0xd0000, 0xe0000, | |||
345 | 0xc8000, 0xd8000, 0xe8000, 0xa0000}; | 345 | 0xc8000, 0xd8000, 0xe8000, 0xa0000}; |
346 | static int si1_probe_addrs[]= { 0xd0000}; | 346 | static int si1_probe_addrs[]= { 0xd0000}; |
347 | 347 | ||
348 | #define NR_SX_ADDRS (sizeof(sx_probe_addrs)/sizeof (int)) | 348 | #define NR_SX_ADDRS ARRAY_SIZE(sx_probe_addrs) |
349 | #define NR_SI_ADDRS (sizeof(si_probe_addrs)/sizeof (int)) | 349 | #define NR_SI_ADDRS ARRAY_SIZE(si_probe_addrs) |
350 | #define NR_SI1_ADDRS (sizeof(si1_probe_addrs)/sizeof (int)) | 350 | #define NR_SI1_ADDRS ARRAY_SIZE(si1_probe_addrs) |
351 | 351 | ||
352 | 352 | ||
353 | /* Set the mask to all-ones. This alas, only supports 32 interrupts. | 353 | /* Set the mask to all-ones. This alas, only supports 32 interrupts. |