Commit 48d1e475 authored by Artem Fetishev's avatar Artem Fetishev Committed by Greg Kroah-Hartman

drivers: staging: ft1000: Remove typedefs

Remove typedefs according to the "Chapter 5: Typedefs" from
Documentation/CodingStyle.
Signed-off-by: default avatarArtem Fetishev <wwctrsrx@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5df466cd
...@@ -417,8 +417,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command, ...@@ -417,8 +417,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
u16 tempword; u16 tempword;
unsigned long flags; unsigned long flags;
struct timeval tv; struct timeval tv;
IOCTL_GET_VER get_ver_data; struct IOCTL_GET_VER get_ver_data;
IOCTL_GET_DSP_STAT get_stat_data; struct IOCTL_GET_DSP_STAT get_stat_data;
u8 ConnectionMsg[] = {0x00,0x44,0x10,0x20,0x80,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x93,0x64, u8 ConnectionMsg[] = {0x00,0x44,0x10,0x20,0x80,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x93,0x64,
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x0a, 0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x0a,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
...@@ -527,8 +527,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command, ...@@ -527,8 +527,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
break; break;
case IOCTL_SET_DPRAM_CMD: case IOCTL_SET_DPRAM_CMD:
{ {
IOCTL_DPRAM_BLK *dpram_data = NULL; struct IOCTL_DPRAM_BLK *dpram_data = NULL;
/* IOCTL_DPRAM_COMMAND dpram_command; */ /* struct IOCTL_DPRAM_COMMAND dpram_command; */
u16 qtype; u16 qtype;
u16 msgsz; u16 msgsz;
struct pseudo_hdr *ppseudo_hdr; struct pseudo_hdr *ppseudo_hdr;
...@@ -672,7 +672,7 @@ static long ft1000_ioctl(struct file *file, unsigned int command, ...@@ -672,7 +672,7 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
case IOCTL_GET_DPRAM_CMD: case IOCTL_GET_DPRAM_CMD:
{ {
struct dpram_blk *pdpram_blk; struct dpram_blk *pdpram_blk;
IOCTL_DPRAM_BLK __user *pioctl_dpram; struct IOCTL_DPRAM_BLK __user *pioctl_dpram;
int msglen; int msglen;
/* DEBUG("FT1000:ft1000_ioctl: IOCTL_FT1000_GET_DPRAM called\n"); */ /* DEBUG("FT1000:ft1000_ioctl: IOCTL_FT1000_GET_DPRAM called\n"); */
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
#ifndef _FT1000IOCTLH_ #ifndef _FT1000IOCTLH_
#define _FT1000IOCTLH_ #define _FT1000IOCTLH_
typedef struct _IOCTL_GET_VER { struct IOCTL_GET_VER {
unsigned long drv_ver; unsigned long drv_ver;
} __packed IOCTL_GET_VER, *PIOCTL_GET_VER; } __packed;
/* Data structure for Dsp statistics */ /* Data structure for Dsp statistics */
typedef struct _IOCTL_GET_DSP_STAT { struct IOCTL_GET_DSP_STAT {
unsigned char DspVer[DSPVERSZ]; /* DSP version number */ unsigned char DspVer[DSPVERSZ]; /* DSP version number */
unsigned char HwSerNum[HWSERNUMSZ]; /* Hardware Serial Number */ unsigned char HwSerNum[HWSERNUMSZ]; /* Hardware Serial Number */
unsigned char Sku[SKUSZ]; /* SKU */ unsigned char Sku[SKUSZ]; /* SKU */
...@@ -67,19 +67,19 @@ typedef struct _IOCTL_GET_DSP_STAT { ...@@ -67,19 +67,19 @@ typedef struct _IOCTL_GET_DSP_STAT {
unsigned long ConTm; /* Current session connection time in seconds */ unsigned long ConTm; /* Current session connection time in seconds */
unsigned char CalVer[CALVERSZ]; /* Proprietary Calibration Version */ unsigned char CalVer[CALVERSZ]; /* Proprietary Calibration Version */
unsigned char CalDate[CALDATESZ]; /* Proprietary Calibration Date */ unsigned char CalDate[CALDATESZ]; /* Proprietary Calibration Date */
} __packed IOCTL_GET_DSP_STAT, *PIOCTL_GET_DSP_STAT; } __packed;
/* Data structure for Dual Ported RAM messaging between Host and Dsp */ /* Data structure for Dual Ported RAM messaging between Host and Dsp */
typedef struct _IOCTL_DPRAM_BLK { struct IOCTL_DPRAM_BLK {
unsigned short total_len; unsigned short total_len;
struct pseudo_hdr pseudohdr; struct pseudo_hdr pseudohdr;
unsigned char buffer[1780]; unsigned char buffer[1780];
} __packed IOCTL_DPRAM_BLK, *PIOCTL_DPRAM_BLK; } __packed;
typedef struct _IOCTL_DPRAM_COMMAND { struct IOCTL_DPRAM_COMMAND {
unsigned short extra; unsigned short extra;
IOCTL_DPRAM_BLK dpram_blk; struct IOCTL_DPRAM_BLK dpram_blk;
} __packed IOCTL_DPRAM_COMMAND, *PIOCTL_DPRAM_COMMAND; } __packed;
/* /*
* Custom IOCTL command codes * Custom IOCTL command codes
...@@ -94,12 +94,12 @@ typedef struct _IOCTL_DPRAM_COMMAND { ...@@ -94,12 +94,12 @@ typedef struct _IOCTL_DPRAM_COMMAND {
#define IOCTL_CONNECT 10 #define IOCTL_CONNECT 10
#define IOCTL_DISCONNECT 11 #define IOCTL_DISCONNECT 11
#define IOCTL_FT1000_GET_DSP_STAT _IOR(FT1000_MAGIC_CODE, IOCTL_GET_DSP_STAT_CMD, IOCTL_GET_DSP_STAT) #define IOCTL_FT1000_GET_DSP_STAT _IOR(FT1000_MAGIC_CODE, IOCTL_GET_DSP_STAT_CMD, struct IOCTL_GET_DSP_STAT)
#define IOCTL_FT1000_GET_VER _IOR(FT1000_MAGIC_CODE, IOCTL_GET_VER_CMD, IOCTL_GET_VER) #define IOCTL_FT1000_GET_VER _IOR(FT1000_MAGIC_CODE, IOCTL_GET_VER_CMD, struct IOCTL_GET_VER)
#define IOCTL_FT1000_CONNECT _IO(FT1000_MAGIC_CODE, IOCTL_CONNECT) #define IOCTL_FT1000_CONNECT _IO(FT1000_MAGIC_CODE, IOCTL_CONNECT)
#define IOCTL_FT1000_DISCONNECT _IO(FT1000_MAGIC_CODE, IOCTL_DISCONNECT) #define IOCTL_FT1000_DISCONNECT _IO(FT1000_MAGIC_CODE, IOCTL_DISCONNECT)
#define IOCTL_FT1000_SET_DPRAM _IOW(FT1000_MAGIC_CODE, IOCTL_SET_DPRAM_CMD, IOCTL_DPRAM_BLK) #define IOCTL_FT1000_SET_DPRAM _IOW(FT1000_MAGIC_CODE, IOCTL_SET_DPRAM_CMD, struct IOCTL_DPRAM_BLK)
#define IOCTL_FT1000_GET_DPRAM _IOR(FT1000_MAGIC_CODE, IOCTL_GET_DPRAM_CMD, IOCTL_DPRAM_BLK) #define IOCTL_FT1000_GET_DPRAM _IOR(FT1000_MAGIC_CODE, IOCTL_GET_DPRAM_CMD, struct IOCTL_DPRAM_BLK)
#define IOCTL_FT1000_REGISTER _IOW(FT1000_MAGIC_CODE, IOCTL_REGISTER_CMD, unsigned short *) #define IOCTL_FT1000_REGISTER _IOW(FT1000_MAGIC_CODE, IOCTL_REGISTER_CMD, unsigned short *)
#endif /* _FT1000IOCTLH_ */ #endif /* _FT1000IOCTLH_ */
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