Commit e09aee2a authored by Marek Belisko's avatar Marek Belisko Committed by Greg Kroah-Hartman

staging: ft1000: Remove DRVMGS typedef usage.

Signed-off-by: default avatarMarek Belisko <marek.belisko@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b13e39b2
...@@ -786,7 +786,7 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, ULONG FileLe ...@@ -786,7 +786,7 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, ULONG FileLe
struct dsp_image_info *pDspImageInfoV6 = NULL; struct dsp_image_info *pDspImageInfoV6 = NULL;
long requested_version; long requested_version;
BOOLEAN bGoodVersion; BOOLEAN bGoodVersion;
PDRVMSG pMailBoxData; struct drv_msg *pMailBoxData;
USHORT *pUsData = NULL; USHORT *pUsData = NULL;
USHORT *pUsFile = NULL; USHORT *pUsFile = NULL;
UCHAR *pUcFile = NULL; UCHAR *pUcFile = NULL;
...@@ -1047,7 +1047,7 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, ULONG FileLe ...@@ -1047,7 +1047,7 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, ULONG FileLe
// Convert length from byte count to word count. Make sure we round up. // Convert length from byte count to word count. Make sure we round up.
word_length = (long)(pft1000info->DSPInfoBlklen + 1)/2; word_length = (long)(pft1000info->DSPInfoBlklen + 1)/2;
put_request_value(ft1000dev, word_length); put_request_value(ft1000dev, word_length);
pMailBoxData = (PDRVMSG)&(pft1000info->DSPInfoBlk[0]); pMailBoxData = (struct drv_msg *)&(pft1000info->DSPInfoBlk[0]);
/* /*
* Position ASIC DPRAM auto-increment pointer. * Position ASIC DPRAM auto-increment pointer.
*/ */
......
...@@ -2082,7 +2082,7 @@ static int ft1000_proc_drvmsg (struct ft1000_device *dev, u16 size) { ...@@ -2082,7 +2082,7 @@ static int ft1000_proc_drvmsg (struct ft1000_device *dev, u16 size) {
u16 tempword; u16 tempword;
struct media_msg *pmediamsg; struct media_msg *pmediamsg;
struct dsp_init_msg *pdspinitmsg; struct dsp_init_msg *pdspinitmsg;
PDRVMSG pdrvmsg; struct drv_msg *pdrvmsg;
u16 i; u16 i;
struct pseudo_hdr *ppseudo_hdr; struct pseudo_hdr *ppseudo_hdr;
PUSHORT pmsg; PUSHORT pmsg;
...@@ -2119,7 +2119,7 @@ static int ft1000_proc_drvmsg (struct ft1000_device *dev, u16 size) { ...@@ -2119,7 +2119,7 @@ static int ft1000_proc_drvmsg (struct ft1000_device *dev, u16 size) {
} }
} }
#endif #endif
pdrvmsg = (PDRVMSG)&cmdbuffer[2]; pdrvmsg = (struct drv_msg *)&cmdbuffer[2];
msgtype = ntohs(pdrvmsg->type); msgtype = ntohs(pdrvmsg->type);
DEBUG("ft1000_proc_drvmsg:Command message type = 0x%x\n", msgtype); DEBUG("ft1000_proc_drvmsg:Command message type = 0x%x\n", msgtype);
switch (msgtype) { switch (msgtype) {
......
...@@ -455,12 +455,12 @@ struct prov_record { ...@@ -455,12 +455,12 @@ struct prov_record {
#define MAX_BUF_SIZE 4096 #define MAX_BUF_SIZE 4096
typedef struct _DRVMSG { struct drv_msg {
struct pseudo_hdr pseudo; struct pseudo_hdr pseudo;
u16 type; u16 type;
u16 length; u16 length;
u8 data[0]; u8 data[0];
} __attribute__ ((packed)) DRVMSG, *PDRVMSG; } __attribute__ ((packed));
struct ft1000_device struct ft1000_device
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment