Re: [PATCH] - e1000_ethtool.c - convert macros to functions

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kok, Auke <auke-jan.h.kok@...>
Cc: netdev <netdev@...>, <e1000-devel@...>, Jeff Garzik <jgarzik@...>
Date: Wednesday, October 31, 2007 - 7:15 pm

On Wed, 2007-10-31 at 14:30 -0700, Kok, Auke wrote:

You could define something like:

#define REG_PATTERN_TEST(reg, mask, write) \
	if (reg_pattern_test(adapter, data, \
			     E1000_REG(&adapter->hw, reg), \
			     mask, write)) \
		return 1;

But isn't the macro with an embedded return a bit too obfuscating?


No.  Your choice to keep/remove.
I did want to use the E1000_REG or a new E1000_REG_ADDR macro.


Simple enough.

When is e1000e scheduled to be part of defconfig?

cheers,  Joe

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] - e1000_ethtool.c - convert macros to functions, Joe Perches, (Wed Oct 31, 7:15 pm)