mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Remove CONFIG_LITTLE_ENDIAN
Replace with kernel-devined __LITTLE_ENDIAN. This also applies to CONFIG_BIG_ENDIAN. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a8e1fbf1f9
commit
b2de21036e
9 changed files with 20 additions and 21 deletions
|
@ -62,7 +62,7 @@ struct rsn_ie_hdr {
|
|||
}__attribute__ ((packed));
|
||||
|
||||
struct wme_ac_parameter {
|
||||
#if defined(CONFIG_LITTLE_ENDIAN)
|
||||
#if defined(__LITTLE_ENDIAN)
|
||||
/* byte 1 */
|
||||
u8 aifsn:4,
|
||||
acm:1,
|
||||
|
@ -72,7 +72,7 @@ struct wme_ac_parameter {
|
|||
/* byte 2 */
|
||||
u8 eCWmin:4,
|
||||
eCWmax:4;
|
||||
#elif defined(CONFIG_BIG_ENDIAN)
|
||||
#elif defined(__BIG_ENDIAN)
|
||||
/* byte 1 */
|
||||
u8 reserved:1,
|
||||
aci:2,
|
||||
|
|
|
@ -22,15 +22,15 @@
|
|||
|
||||
#include <drv_conf.h>
|
||||
|
||||
#if defined (CONFIG_LITTLE_ENDIAN) && defined (CONFIG_BIG_ENDIAN)
|
||||
#error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n"
|
||||
#if defined (__LITTLE_ENDIAN) && defined (__BIG_ENDIAN)
|
||||
#error "Shall be __LITTLE_ENDIAN or __BIG_ENDIAN, but not both!\n"
|
||||
#endif
|
||||
|
||||
#if defined (CONFIG_LITTLE_ENDIAN)
|
||||
#if defined (__LITTLE_ENDIAN)
|
||||
#ifndef CONFIG_PLATFORM_MSTAR
|
||||
# include <little_endian.h>
|
||||
#endif
|
||||
#elif defined (CONFIG_BIG_ENDIAN)
|
||||
#elif defined (__BIG_ENDIAN)
|
||||
# include <big_endian.h>
|
||||
#else
|
||||
# error "Must be LITTLE/BIG Endian Host"
|
||||
|
|
|
@ -167,7 +167,7 @@ struct intf_hdl {
|
|||
|
||||
struct reg_protocol_rd {
|
||||
|
||||
#ifdef CONFIG_LITTLE_ENDIAN
|
||||
#ifdef __LITTLE_ENDIAN
|
||||
|
||||
//DW1
|
||||
u32 NumOfTrans:4;
|
||||
|
@ -225,7 +225,7 @@ struct reg_protocol_rd {
|
|||
struct reg_protocol_wt {
|
||||
|
||||
|
||||
#ifdef CONFIG_LITTLE_ENDIAN
|
||||
#ifdef __LITTLE_ENDIAN
|
||||
|
||||
//DW1
|
||||
u32 NumOfTrans:4;
|
||||
|
|
|
@ -911,13 +911,13 @@ static struct cmd_hdl wlancmds[] = {
|
|||
struct C2HEvent_Header
|
||||
{
|
||||
|
||||
#ifdef CONFIG_LITTLE_ENDIAN
|
||||
#ifdef __LITTLE_ENDIAN
|
||||
|
||||
unsigned int len:16;
|
||||
unsigned int ID:8;
|
||||
unsigned int seq:8;
|
||||
|
||||
#elif defined(CONFIG_BIG_ENDIAN)
|
||||
#elif defined(__BIG_ENDIAN)
|
||||
|
||||
unsigned int seq:8;
|
||||
unsigned int ID:8;
|
||||
|
|
|
@ -68,7 +68,7 @@ union pn48 {
|
|||
|
||||
u64 val;
|
||||
|
||||
#ifdef CONFIG_LITTLE_ENDIAN
|
||||
#ifdef __LITTLE_ENDIAN
|
||||
|
||||
struct {
|
||||
u8 TSC0;
|
||||
|
@ -81,7 +81,7 @@ struct {
|
|||
u8 TSC7;
|
||||
} _byte_;
|
||||
|
||||
#elif defined(CONFIG_BIG_ENDIAN)
|
||||
#elif defined(__BIG_ENDIAN)
|
||||
|
||||
struct {
|
||||
u8 TSC7;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue