diff options
author | Charles Clément <caratorn@gmail.com> | 2010-05-14 22:37:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-17 19:26:42 -0400 |
commit | 078b078f662a8e21d5a6fee81007b5337ab962cd (patch) | |
tree | 8d33e906f48d033281c649a0696734a54fc25597 /drivers/staging/vt6655/srom.c | |
parent | 7a6cb0d5497418599d2125b670926b75e673861c (diff) |
Staging: vt6655: use ETH_ALEN macro instead of custom one
Replaced custom ethernet address length definition U_ETHER_ADDR_LEN by
ETH_ALEN from <linux/if_ether.h>.
Signed-off-by: Charles Clément <caratorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6655/srom.c')
-rw-r--r-- | drivers/staging/vt6655/srom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vt6655/srom.c b/drivers/staging/vt6655/srom.c index fb7a6468cab..418575fdc2c 100644 --- a/drivers/staging/vt6655/srom.c +++ b/drivers/staging/vt6655/srom.c | |||
@@ -320,7 +320,7 @@ void SROMvReadEtherAddress(DWORD_PTR dwIoBase, PBYTE pbyEtherAddress) | |||
320 | BYTE ii; | 320 | BYTE ii; |
321 | 321 | ||
322 | /* ii = Rom Address */ | 322 | /* ii = Rom Address */ |
323 | for (ii = 0; ii < U_ETHER_ADDR_LEN; ii++) { | 323 | for (ii = 0; ii < ETH_ALEN; ii++) { |
324 | *pbyEtherAddress = SROMbyReadEmbedded(dwIoBase, ii); | 324 | *pbyEtherAddress = SROMbyReadEmbedded(dwIoBase, ii); |
325 | pbyEtherAddress++; | 325 | pbyEtherAddress++; |
326 | } | 326 | } |
@@ -345,7 +345,7 @@ void SROMvWriteEtherAddress(DWORD_PTR dwIoBase, PBYTE pbyEtherAddress) | |||
345 | BYTE ii; | 345 | BYTE ii; |
346 | 346 | ||
347 | /* ii = Rom Address */ | 347 | /* ii = Rom Address */ |
348 | for (ii = 0; ii < U_ETHER_ADDR_LEN; ii++) { | 348 | for (ii = 0; ii < ETH_ALEN; ii++) { |
349 | SROMbWriteEmbedded(dwIoBase, ii, *pbyEtherAddress); | 349 | SROMbWriteEmbedded(dwIoBase, ii, *pbyEtherAddress); |
350 | pbyEtherAddress++; | 350 | pbyEtherAddress++; |
351 | } | 351 | } |