]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: shorten AMAP_GET/SET_BITS() macro calls
authorSathya Perla <sathya.perla@emulex.com>
Tue, 2 Sep 2014 04:26:47 +0000 (09:56 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 19:45:59 +0000 (12:45 -0700)
commit0a1055b2686b759d6f786c8731573eb20dfb9ce6
tree12cceb6d18a5757e5c2140a3ead11237ca91f6e8
parente336931cf43f0db617335c14fb8ec16b09f427f4
be2net: shorten AMAP_GET/SET_BITS() macro calls

The AMAP_GET/SET_BITS() macro calls take structure name as a parameter
and hence are long and span more than one line. Replace these calls
with a wrapper macros for RX/Tx compls and TX wrb. This results in fewer
lines and more readable code in be_main.c

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c