]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitc3c18bc1de27741de9188094fcd4e253c9426164
tree12cceb6d18a5757e5c2140a3ead11237ca91f6e8
parentacbafeb1e9daa18d601e9d91b68925e863cc4f6e
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