summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655/desc.h
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2015-07-22 19:16:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-22 20:51:39 -0700
commit7135d9a76f787f089faad0e08bdef259cb019d64 (patch)
treef1b2dd09d8e4d13cc2fdc267894b39fd01efcea5 /drivers/staging/vt6655/desc.h
parentf1e3e92135202ff3d95195393ee62808c109208c (diff)
staging: vt6655: Fix wReqCount to __le16
Should be __le16 and do and correct endian conversion. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/desc.h')
-rw-r--r--drivers/staging/vt6655/desc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/vt6655/desc.h b/drivers/staging/vt6655/desc.h
index 251f7bcb9bad..f6563d3684cd 100644
--- a/drivers/staging/vt6655/desc.h
+++ b/drivers/staging/vt6655/desc.h
@@ -175,7 +175,7 @@ typedef struct tagDEVICE_RD_INFO {
#ifdef __BIG_ENDIAN
typedef struct tagRDES0 {
- volatile unsigned short wResCount;
+ volatile __le16 wResCount;
union {
volatile u16 f15Reserved;
struct {
@@ -190,7 +190,7 @@ SRDES0, *PSRDES0;
#else
typedef struct tagRDES0 {
- unsigned short wResCount;
+ __le16 wResCount;
unsigned short f15Reserved:15;
unsigned short f1Owner:1;
} __attribute__ ((__packed__))
@@ -199,7 +199,7 @@ SRDES0;
#endif
typedef struct tagRDES1 {
- unsigned short wReqCount;
+ __le16 wReqCount;
unsigned short wReserved;
} __attribute__ ((__packed__))
SRDES1;