projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44b1e77
)
sbni endian fixes
author
Al Viro
<viro@ftp.linux.org.uk>
Sun, 13 Jan 2008 14:17:25 +0000
(14:17 +0000)
committer
Jeff Garzik
<jeff@garzik.org>
Fri, 18 Jan 2008 19:44:33 +0000
(14:44 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/wan/sbni.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wan/sbni.h
b/drivers/net/wan/sbni.h
index 27715e70f28b1ba599981b78e0e07689b9eb1e1e..84264510a8ed850bc1f5bbd963aeb5cd7eca6d8e 100644
(file)
--- a/
drivers/net/wan/sbni.h
+++ b/
drivers/net/wan/sbni.h
@@
-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 */