From: Greg Kroah-Hartman Date: Tue, 27 Apr 2010 23:49:23 +0000 (-0700) Subject: Staging: dt3155: remove dt3155_read_t X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5019d2848c6773ee5815291e6d3fcc33d0f5345c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git Staging: dt3155: remove dt3155_read_t The typedef is not needed. Cc: H Hartley Sweeten Cc: Scott Smedley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dt3155/dt3155.h b/drivers/staging/dt3155/dt3155.h index 6546b60b9b8..74a71f6a8eb 100644 --- a/drivers/staging/dt3155/dt3155.h +++ b/drivers/staging/dt3155/dt3155.h @@ -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 */ diff --git a/drivers/staging/dt3155/dt3155_drv.c b/drivers/staging/dt3155/dt3155_drv.c index 5c567e4a88a..3e8ceac3d9b 100644 --- a/drivers/staging/dt3155/dt3155_drv.c +++ b/drivers/staging/dt3155/dt3155_drv.c @@ -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)