mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Convert to use __LITTLE_ENDIAN symbol from kernel
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
11c5d28b89
commit
94afbb0df3
8 changed files with 45 additions and 116 deletions
|
@ -12181,15 +12181,10 @@ static void printdata(u8 *pbuf, u32 len)
|
|||
}
|
||||
|
||||
if (i < len) {
|
||||
#ifdef CONFIG_BIG_ENDIAN
|
||||
#ifdef __BIG_ENDIAN
|
||||
for (; i < len, i++)
|
||||
printk("%02X", pbuf + i);
|
||||
#else /* CONFIG_LITTLE_ENDIAN */
|
||||
#if 0
|
||||
val = 0;
|
||||
_rtw_memcpy(&val, pbuf + i, len - i);
|
||||
printk("%8X", val);
|
||||
#else
|
||||
#else /* __LITTLE_ENDIAN */
|
||||
u8 str[9];
|
||||
u8 n;
|
||||
val = 0;
|
||||
|
@ -12198,8 +12193,7 @@ static void printdata(u8 *pbuf, u32 len)
|
|||
sprintf(str, "%08X", val);
|
||||
n = (4 - n) * 2;
|
||||
printk("%8s", str + n);
|
||||
#endif
|
||||
#endif /* CONFIG_LITTLE_ENDIAN */
|
||||
#endif /* __LITTLE_ENDIAN */
|
||||
}
|
||||
printk("\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue