Commit 923c1244 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: dt3155: remove dt3155_status_t

The typedef is not needed.

Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Scott Smedley <ss@aao.gov.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7f76c52f
......@@ -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)
......
......@@ -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;
}
......
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