aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/winbond/wbhal_s.h
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/wbhal_s.h
parent64328c8711d72794446bbafe23890468786424cc (diff)
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/wbhal_s.h')
-rw-r--r--drivers/staging/winbond/wbhal_s.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/winbond/wbhal_s.h b/drivers/staging/winbond/wbhal_s.h
index 276d2b12632..9353ac259e8 100644
--- a/drivers/staging/winbond/wbhal_s.h
+++ b/drivers/staging/winbond/wbhal_s.h
@@ -2,6 +2,7 @@
#define __WINBOND_WBHAL_S_H
#include <linux/types.h>
+#include <linux/if_ether.h> /* for ETH_ALEN */
#include "common.h"
@@ -427,7 +428,6 @@ typedef struct _TXVGA_FOR_50 {
#include "wb35tx_s.h"
#include "wb35rx_s.h"
-
// For Hal using ==================================================================
typedef struct _HW_DATA_T
{
@@ -452,8 +452,8 @@ typedef struct _HW_DATA_T
//===============================================
// Definition for MAC address
//===============================================
- u8 PermanentMacAddress[ETH_LENGTH_OF_ADDRESS + 2]; // The Enthernet addr that are stored in EEPROM. + 2 to 8-byte alignment
- u8 CurrentMacAddress[ETH_LENGTH_OF_ADDRESS + 2]; // The Enthernet addr that are in used. + 2 to 8-byte alignment
+ u8 PermanentMacAddress[ETH_ALEN + 2]; // The Enthernet addr that are stored in EEPROM. + 2 to 8-byte alignment
+ u8 CurrentMacAddress[ETH_ALEN + 2]; // The Enthernet addr that are in used. + 2 to 8-byte alignment
//=====================================================================
// Definition for 802.11