diff options
author | Mihaela Muraru <mihaela.muraru21@gmail.com> | 2017-09-28 21:48:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-29 15:26:06 +0200 |
commit | 5f5d08438c199c0c56c218d30ae11b1baf327c06 (patch) | |
tree | 6cd10512e520dd42f295ddda6e597e6929ccc265 /drivers/staging | |
parent | 4ad13b5d4c473b87a17286806a809cc31284dbee (diff) |
staging: vc04_services: Remove typedef struct vchiq_2835_state_struct
This patch removes typedef from struct and renames it from "typedef
struct vchiq_2835_state_struct" to "struct vchiq_2835_state" as per
kernel coding standards.
Signed-off-by: Mihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c index 29702ea9999f..a96bae0dd6a6 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c @@ -59,10 +59,10 @@ #define BELL0 0x00 #define BELL2 0x08 -typedef struct vchiq_2835_state_struct { +struct vchiq_2835_state { int inited; VCHIQ_ARM_STATE_T arm_state; -} VCHIQ_2835_ARM_STATE_T; +}; struct vchiq_pagelist_info { PAGELIST_T *pagelist; @@ -205,12 +205,12 @@ vchiq_platform_init_state(VCHIQ_STATE_T *state) { VCHIQ_STATUS_T status = VCHIQ_SUCCESS; - state->platform_state = kzalloc(sizeof(VCHIQ_2835_ARM_STATE_T), GFP_KERNEL); - ((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->inited = 1; - status = vchiq_arm_init_state(state, &((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->arm_state); + state->platform_state = kzalloc(sizeof(struct vchiq_2835_state), GFP_KERNEL); + ((struct vchiq_2835_state *)state->platform_state)->inited = 1; + status = vchiq_arm_init_state(state, &((struct vchiq_2835_state *)state->platform_state)->arm_state); if (status != VCHIQ_SUCCESS) { - ((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->inited = 0; + ((struct vchiq_2835_state *)state->platform_state)->inited = 0; } return status; } @@ -218,11 +218,11 @@ vchiq_platform_init_state(VCHIQ_STATE_T *state) VCHIQ_ARM_STATE_T* vchiq_platform_get_arm_state(VCHIQ_STATE_T *state) { - if (!((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->inited) + if (!((struct vchiq_2835_state *)state->platform_state)->inited) { BUG(); } - return &((VCHIQ_2835_ARM_STATE_T *)state->platform_state)->arm_state; + return &((struct vchiq_2835_state *)state->platform_state)->arm_state; } void |