Skip to content

Commit

Permalink
sbni endian fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Al Viro authored and Jeff Garzik committed Jan 18, 2008
1 parent 44b1e77 commit c15561f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions drivers/net/wan/sbni.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ enum {
#define PR_RES 0x80

struct sbni_csr1 {
unsigned rxl : 5;
unsigned rate : 2;
unsigned : 1;
#ifdef __LITTLE_ENDIAN_BITFIELD
u8 rxl : 5;
u8 rate : 2;
u8 : 1;
#else
u8 : 1;
u8 rate : 2;
u8 rxl : 5;
#endif
};

/* fields in frame header */
Expand Down

0 comments on commit c15561f

Please sign in to comment.