Staging: dt3155: remove dt3155_status_t
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Apr 2010 23:47:55 +0000 (16:47 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:40 +0000 (11:35 -0700)
The typedef is not needed.

Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Scott Smedley <ss@aao.gov.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/dt3155/dt3155.h
drivers/staging/dt3155/dt3155_drv.c

index 93ee663f033fb99a478b2a1cf9e29de866102c1b..6546b60b9b890534ccb3d42d9f989576bf2c5639 100644 (file)
@@ -110,7 +110,7 @@ struct dt3155_fbuffer_s {
 #define DT3155_ACQ             2
 
 /* There is one status structure for each card. */
-typedef struct dt3155_status_s {
+struct dt3155_status {
        int fixed_mode;         /* if 1, we are in fixed frame mode */
        u32 reg_addr;   /* Register address for a single card */
        u32 mem_addr;   /* Buffer start addr for this card */
@@ -120,10 +120,10 @@ typedef struct dt3155_status_s {
        struct dt3155_fbuffer_s fbuffer;        /* frame buffer state struct */
        u32 state;              /* this card's state */
        u32 device_installed;   /* Flag if installed. 1=installed */
-} dt3155_status_t;
+};
 
 /* Reference to global status structure */
-extern struct dt3155_status_s dt3155_status[MAXBOARDS];
+extern struct dt3155_status dt3155_status[MAXBOARDS];
 
 #define DT3155_STATE_IDLE      0x00
 #define DT3155_STATE_FRAME     0x01
@@ -135,7 +135,7 @@ extern struct dt3155_status_s dt3155_status[MAXBOARDS];
 #define DT3155_IOC_MAGIC       '!'
 
 #define DT3155_SET_CONFIG      _IOW(DT3155_IOC_MAGIC, 1, struct dt3155_config_s)
-#define DT3155_GET_CONFIG      _IOR(DT3155_IOC_MAGIC, 2, struct dt3155_status_s)
+#define DT3155_GET_CONFIG      _IOR(DT3155_IOC_MAGIC, 2, struct dt3155_status)
 #define DT3155_STOP            _IO(DT3155_IOC_MAGIC, 3)
 #define DT3155_START           _IO(DT3155_IOC_MAGIC, 4)
 #define DT3155_FLUSH           _IO(DT3155_IOC_MAGIC, 5)
index cd674e1c6d0f49478823f7881c062b6ff4cd94e1..5c567e4a88a2b506bf041c855955630cb8a21a0f 100644 (file)
@@ -112,7 +112,7 @@ int dt3155_major = 0;
 /* Global structures and variables */
 
 /* Status of each device */
-struct dt3155_status_s dt3155_status[MAXBOARDS];
+struct dt3155_status dt3155_status[MAXBOARDS];
 
 /* kernel logical address of the board */
 u8 *dt3155_lbase[MAXBOARDS] = { NULL
@@ -566,7 +566,7 @@ static int dt3155_ioctl(struct inode *inode,
     case DT3155_GET_CONFIG:
       {
        if (copy_to_user((void *) arg, (void *) &dt3155_status[minor],
-                    sizeof(dt3155_status_t)))
+                    sizeof(struct dt3155_status)))
            return -EFAULT;
        return 0;
       }
@@ -587,7 +587,7 @@ static int dt3155_ioctl(struct inode *inode,
 
        quick_stop(minor);
        if (copy_to_user((void *) arg, (void *) &dt3155_status[minor],
-                    sizeof(dt3155_status_t)))
+                    sizeof(struct dt3155_status)))
            return -EFAULT;
        return 0;
       }
@@ -611,7 +611,7 @@ static int dt3155_ioctl(struct inode *inode,
 
        dt3155_init_isr(minor);
        if (copy_to_user((void *) arg, (void *) &dt3155_status[minor],
-                     sizeof(dt3155_status_t)))
+                     sizeof(struct dt3155_status)))
            return -EFAULT;
        return 0;
       }