Re: [patch 02/13] dio: ARRAY_SIZE() cleanup

2007-11-20 Thread Geert Uytterhoeven
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

Re: [patch 02/13] dio: ARRAY_SIZE() cleanup

2007-11-20 Thread Richard Knutsson
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

[patch 02/13] dio: ARRAY_SIZE() cleanup

2007-11-18 Thread Geert Uytterhoeven
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 +++