mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
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: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
923c1244fc
commit
5019d2848c
@ -150,12 +150,12 @@ extern struct dt3155_status dt3155_status[MAXBOARDS];
|
||||
#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 */
|
||||
typedef struct dt3155_read_s {
|
||||
struct dt3155_read {
|
||||
u32 offset;
|
||||
u32 frame_seq;
|
||||
u32 state;
|
||||
|
||||
struct frame_info frame_info;
|
||||
} dt3155_read_t;
|
||||
};
|
||||
|
||||
#endif /* _DT3155_inc */
|
||||
|
@ -761,7 +761,7 @@ static ssize_t dt3155_read(struct file *filep, char __user *buf,
|
||||
|
||||
/* TODO: this should check the error flag and */
|
||||
/* 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");
|
||||
return -EINVAL;
|
||||
@ -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)))
|
||||
return -EFAULT;
|
||||
|
||||
return sizeof(dt3155_read_t);
|
||||
return sizeof(struct dt3155_read);
|
||||
}
|
||||
|
||||
static unsigned int dt3155_poll (struct file * filp, poll_table *wait)
|
||||
|
Loading…
Reference in New Issue
Block a user