Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARRAY_SIZE().

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cyrill Gorcunov
Date: Saturday, September 20, 2008 - 7:45 am

[Christer Weinigel - Sat, Sep 20, 2008 at 04:28:19PM +0200]
...

Well, can't agree with you :) It's my _presonal_ opinion.
You could define it as

static inline int platform_add_devices_array(struct platform_device **devs)
{
	return platform_add_devices(devs, ARRAY_SIZE(devs));
}

for me it would look much better then hide args by MACRO.
And I don't feel any hard about to use platform_add_devices
with TWO arguments. But I repeat - it's my _personal_ opinion.

		- Cyrill -
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARR ..., Christer Weinigel, (Sat Sep 20, 6:05 am)
Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARR ..., Christer Weinigel, (Sat Sep 20, 7:28 am)
Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARR ..., Cyrill Gorcunov, (Sat Sep 20, 7:45 am)
Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARR ..., Christer Weinigel, (Sat Sep 20, 9:38 am)