Commit 5019d284 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: dt3155: remove dt3155_read_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 923c1244
...@@ -150,12 +150,12 @@ extern struct dt3155_status dt3155_status[MAXBOARDS]; ...@@ -150,12 +150,12 @@ extern struct dt3155_status dt3155_status[MAXBOARDS];
#define DT_ERR_MASK 0xff0000/* not used but it might be one day */ #define DT_ERR_MASK 0xff0000/* not used but it might be one day */
/* User code will probably want to declare one of these for each card */ /* User code will probably want to declare one of these for each card */
typedef struct dt3155_read_s { struct dt3155_read {
u32 offset; u32 offset;
u32 frame_seq; u32 frame_seq;
u32 state; u32 state;
struct frame_info frame_info; struct frame_info frame_info;
} dt3155_read_t; };
#endif /* _DT3155_inc */ #endif /* _DT3155_inc */
...@@ -761,7 +761,7 @@ static ssize_t dt3155_read(struct file *filep, char __user *buf, ...@@ -761,7 +761,7 @@ static ssize_t dt3155_read(struct file *filep, char __user *buf,
/* TODO: this should check the error flag and */ /* TODO: this should check the error flag and */
/* return an error on hardware failures */ /* return an error on hardware failures */
if (count != sizeof(dt3155_read_t)) if (count != sizeof(struct dt3155_read))
{ {
printk("DT3155 ERROR (NJC): count is not right\n"); printk("DT3155 ERROR (NJC): count is not right\n");
return -EINVAL; return -EINVAL;
...@@ -821,7 +821,7 @@ static ssize_t dt3155_read(struct file *filep, char __user *buf, ...@@ -821,7 +821,7 @@ static ssize_t dt3155_read(struct file *filep, char __user *buf,
if (copy_to_user(buf, frame_info, sizeof(*frame_info))) if (copy_to_user(buf, frame_info, sizeof(*frame_info)))
return -EFAULT; return -EFAULT;
return sizeof(dt3155_read_t); return sizeof(struct dt3155_read);
} }
static unsigned int dt3155_poll (struct file * filp, poll_table *wait) static unsigned int dt3155_poll (struct file * filp, poll_table *wait)
......
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