]> err.no Git - linux-2.6/commit
[E1000E]: convert register test macros to functions
authorJoe Perches <joe@perches.com>
Wed, 14 Nov 2007 04:53:51 +0000 (20:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:03:51 +0000 (15:03 -0800)
commit2a88719197bde746006c18ebe8f3576c87991419
treea597d56f8626f3ecfdf74a5fcd6916e208e5b95b
parent7e64300a0f335e443aa39ee477c541e34a69ae52
[E1000E]: convert register test macros to functions

Add functions for reg_pattern_test and reg_set_and check
Changed macros to use these functions

Compiled x86, untested

Size decreased ~2K

old:

$ size drivers/net/e1000e/ethtool.o
   text    data     bss     dec     hex filename
  14461       0       0   14461    387d drivers/net/e1000e/ethtool.o

new:

$ size drivers/net/e1000e/ethtool.o
   text    data     bss     dec     hex filename
  12498       0       0   12498    30d2 drivers/net/e1000e/ethtool.o

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/ethtool.c