diff options
author | Dominic Braun | 2018-12-14 13:04:47 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-12-17 14:31:47 +0100 |
commit | cf69fc521676ccedad3cfd51fa50a98498f92484 (patch) | |
tree | eb4a290e785f3a175e59a215b33f66e201fb70ad /drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | |
parent | staging: vc04_services: Remove VCHIQ_ARM_STATE_T typedef (diff) | |
download | kernel-qcow2-linux-cf69fc521676ccedad3cfd51fa50a98498f92484.tar.gz kernel-qcow2-linux-cf69fc521676ccedad3cfd51fa50a98498f92484.tar.xz kernel-qcow2-linux-cf69fc521676ccedad3cfd51fa50a98498f92484.zip |
staging: vc04_services: Remove VCHIQ_AWAIT_COMPLETION_T typedef
Typedefing structs is not encouraged in the kernel.
Signed-off-by: Dominic Braun <inf.braun@fau.de>
Signed-off-by: Tobias Büttner <tobias.buettner@fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c')
-rw-r--r-- | drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 2afdf1fcb67b..ddb771a57b57 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -1158,7 +1158,7 @@ vchiq_ioctl(struct file *file, unsigned int cmd, unsigned long arg) } break; case VCHIQ_IOC_AWAIT_COMPLETION: { - VCHIQ_AWAIT_COMPLETION_T args; + struct vchiq_await_completion args; DEBUG_TRACE(AWAIT_COMPLETION_LINE); if (!instance->connected) { @@ -1301,8 +1301,8 @@ vchiq_ioctl(struct file *file, unsigned int cmd, unsigned long arg) if (msgbufcount != args.msgbufcount) { if (copy_to_user((void __user *) - &((VCHIQ_AWAIT_COMPLETION_T *)arg)-> - msgbufcount, + &((struct vchiq_await_completion *)arg) + ->msgbufcount, &msgbufcount, sizeof(msgbufcount)) != 0) { ret = -EFAULT; @@ -1725,7 +1725,7 @@ vchiq_compat_ioctl_await_completion(struct file *file, unsigned int cmd, unsigned long arg) { - VCHIQ_AWAIT_COMPLETION_T __user *args; + struct vchiq_await_completion __user *args; VCHIQ_COMPLETION_DATA_T __user *completion; VCHIQ_COMPLETION_DATA_T completiontemp; struct vchiq_await_completion32 args32; |