summaryrefslogtreecommitdiffstats
path: root/drivers/staging/winbond/reg.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2009-01-08 11:56:53 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:53:15 -0700
commitbd37b7fddf51431faf9c32cd22356421913cfce8 (patch)
tree897314701706e1cc22046cbb76f49f9d6d0149c4 /drivers/staging/winbond/reg.c
parent64328c8711d72794446bbafe23890468786424cc (diff)
downloadop-kernel-dev-bd37b7fddf51431faf9c32cd22356421913cfce8.zip
op-kernel-dev-bd37b7fddf51431faf9c32cd22356421913cfce8.tar.gz
Staging: w35und: convert code to use ETH_ALEN
As suggested by Harvey Harrison, convert driver to use ETH_ALEN and kill a private macro from common.h that is used for the same thing. Acked-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/winbond/reg.c')
-rw-r--r--drivers/staging/winbond/reg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/winbond/reg.c b/drivers/staging/winbond/reg.c
index c365c5d..ed08e00 100644
--- a/drivers/staging/winbond/reg.c
+++ b/drivers/staging/winbond/reg.c
@@ -948,14 +948,13 @@ Uxx_ReadEthernetAddress( phw_data_t pHwData )
// Return Value:
// None.
//==============================================================================================================
-void CardGetMulticastBit( u8 Address[ETH_LENGTH_OF_ADDRESS],
- u8 *Byte, u8 *Value )
+void CardGetMulticastBit( u8 Address[ETH_ALEN], u8 *Byte, u8 *Value )
{
u32 Crc;
u32 BitNumber;
// First compute the CRC.
- Crc = CardComputeCrc(Address, ETH_LENGTH_OF_ADDRESS);
+ Crc = CardComputeCrc(Address, ETH_ALEN);
// The computed CRC is bit0~31 from left to right
//At first we should do right shift 25bits, and read 7bits by using '&', 2^7=128
OpenPOWER on IntegriCloud