On Tue, 20 Nov 2007, Richard Knutsson wrote:
> Geert Uytterhoeven wrote:
>
> > -#define NUMNAMES (sizeof(names) / sizeof(struct dioname))
> > +#define NUMNAMES ARRAY_SIZE(names)
>
> Why not replace NUMNAMES?
Good idea! Updated patch below.
---
Subject: dio: ARRAY_SIZE() cleanup
From: Alejandr
Geert Uytterhoeven wrote:
-#define NUMNAMES (sizeof(names) / sizeof(struct dioname))
+#define NUMNAMES ARRAY_SIZE(names)
Why not replace NUMNAMES?
/Richard Knutsson
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to [EMAIL PROTECTED]
More maj
From: Alejandro Martinez Ruiz <[EMAIL PROTECTED]>
dio: ARRAY_SIZE() cleanup
Signed-off-by: Alejandro Martinez Ruiz <[EMAIL PROTECTED]>
Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]>
---
drivers/dio/dio.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/dio/dio.c
+++