diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-23 12:36:38 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:21 -0700 |
commit | 2ed53cf8a523d3e2fc133d892f8d040c3fc9656d (patch) | |
tree | f64d09b10df57de29c4cc001adafa052636f7150 /drivers/staging/epl/EplAmi.h | |
parent | Staging: epl: delete EdrvFec5282.h (diff) | |
download | linux-dev-2ed53cf8a523d3e2fc133d892f8d040c3fc9656d.tar.xz linux-dev-2ed53cf8a523d3e2fc133d892f8d040c3fc9656d.zip |
Staging: epl: remove BYTE
It's u8 in kernelspace, not BYTE.
Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/epl/EplAmi.h')
-rw-r--r-- | drivers/staging/epl/EplAmi.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/epl/EplAmi.h b/drivers/staging/epl/EplAmi.h index d3e47cbd3c94..7abcb6c2028f 100644 --- a/drivers/staging/epl/EplAmi.h +++ b/drivers/staging/epl/EplAmi.h @@ -69,7 +69,7 @@ 16.09.2002 -as To save code space the functions AmiSetByte and AmiGetByte - are replaced by macros. For targets which assign BYTE by + are replaced by macros. For targets which assign u8 by an 16Bit type, the definition of macros must changed to functions. @@ -105,10 +105,10 @@ extern "C" { // // To save code space the function AmiSetByte is replaced by // an macro. -// void AmiSetByte (void * pAddr_p, BYTE bByteVal_p); +// void AmiSetByte (void * pAddr_p, u8 bByteVal_p); -#define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);} -#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);} +#define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);} +#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);} void AmiSetWordToBe(void *pAddr_p, WORD wWordVal_p); void AmiSetDwordToBe(void *pAddr_p, DWORD dwDwordVal_p); @@ -121,10 +121,10 @@ void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p); // // To save code space the function AmiGetByte is replaced by // an macro. -// BYTE AmiGetByte (void * pAddr_p); +// u8 AmiGetByte (void * pAddr_p); -#define AmiGetByteFromBe(pAddr_p) (*(BYTE *)(pAddr_p)) -#define AmiGetByteFromLe(pAddr_p) (*(BYTE *)(pAddr_p)) +#define AmiGetByteFromBe(pAddr_p) (*(u8 *)(pAddr_p)) +#define AmiGetByteFromLe(pAddr_p) (*(u8 *)(pAddr_p)) WORD AmiGetWordFromBe(void *pAddr_p); DWORD AmiGetDwordFromBe(void *pAddr_p); |