diff options
author | Dominic Braun <inf.braun@fau.de> | 2018-12-14 13:05:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-17 14:47:44 +0100 |
commit | c55aedfe60d06a7f8c6816583020c6035388a813 (patch) | |
tree | eb37c9b2cfbb65d6145bda3c350808c1f7d05e8d /drivers/staging | |
parent | 4f0922c87d47d95f87cfef3acf2d7549c5a6dfd8 (diff) |
staging: vc04_services: Remove VCHIQ_SHARED_STATE_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')
-rw-r--r-- | drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 24 | ||||
-rw-r--r-- | drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 12 |
2 files changed, 18 insertions, 18 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index fcc925efaa27..3b66445b86d0 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -555,7 +555,7 @@ request_poll(VCHIQ_STATE_T *state, struct vchiq_service *service, int poll_type) static struct vchiq_header * reserve_space(VCHIQ_STATE_T *state, size_t space, int is_blocking) { - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; int tx_pos = state->local_tx_pos; int slot_space = VCHIQ_SLOT_SIZE - (tx_pos & VCHIQ_SLOT_MASK); @@ -616,7 +616,7 @@ reserve_space(VCHIQ_STATE_T *state, size_t space, int is_blocking) static void process_free_queue(VCHIQ_STATE_T *state, BITSET_T *service_found, size_t length) { - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; int slot_queue_available; /* Find slots which have been freed by the other side, and return them @@ -804,7 +804,7 @@ queue_message(VCHIQ_STATE_T *state, struct vchiq_service *service, int msgid, size_t offset, size_t maxsize), void *context, size_t size, int flags) { - VCHIQ_SHARED_STATE_T *local; + struct vchiq_shared_state *local; struct vchiq_service_quota *service_quota = NULL; struct vchiq_header *header; int type = VCHIQ_MSG_TYPE(msgid); @@ -1052,7 +1052,7 @@ queue_message_sync(VCHIQ_STATE_T *state, struct vchiq_service *service, size_t offset, size_t maxsize), void *context, int size, int is_blocking) { - VCHIQ_SHARED_STATE_T *local; + struct vchiq_shared_state *local; struct vchiq_header *header; ssize_t callback_result; @@ -1523,7 +1523,7 @@ bail_not_ready: static void parse_rx_slots(VCHIQ_STATE_T *state) { - VCHIQ_SHARED_STATE_T *remote = state->remote; + struct vchiq_shared_state *remote = state->remote; struct vchiq_service *service = NULL; int tx_pos; @@ -1874,7 +1874,7 @@ static int slot_handler_func(void *v) { VCHIQ_STATE_T *state = (VCHIQ_STATE_T *) v; - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; DEBUG_INITIALISE(local) @@ -1958,7 +1958,7 @@ static int recycle_func(void *v) { VCHIQ_STATE_T *state = (VCHIQ_STATE_T *) v; - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; BITSET_T *found; size_t length; @@ -1982,7 +1982,7 @@ static int sync_func(void *v) { VCHIQ_STATE_T *state = (VCHIQ_STATE_T *) v; - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; struct vchiq_header *header = (struct vchiq_header *)SLOT_DATA_FROM_INDEX(state, state->remote->slot_sync); @@ -2144,8 +2144,8 @@ vchiq_init_slots(void *mem_base, int mem_size) VCHIQ_STATUS_T vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero) { - VCHIQ_SHARED_STATE_T *local; - VCHIQ_SHARED_STATE_T *remote; + struct vchiq_shared_state *local; + struct vchiq_shared_state *remote; VCHIQ_STATUS_T status; char threadname[16]; int i; @@ -3216,7 +3216,7 @@ vchiq_release_message(VCHIQ_SERVICE_HANDLE_T handle, struct vchiq_header *header) { struct vchiq_service *service = find_service_by_handle(handle); - VCHIQ_SHARED_STATE_T *remote; + struct vchiq_shared_state *remote; VCHIQ_STATE_T *state; int slot_index; @@ -3359,7 +3359,7 @@ vchiq_set_service_option(VCHIQ_SERVICE_HANDLE_T handle, static void vchiq_dump_shared_state(void *dump_context, VCHIQ_STATE_T *state, - VCHIQ_SHARED_STATE_T *shared, const char *label) + struct vchiq_shared_state *shared, const char *label) { static const char *const debug_names[] = { "<entries>", diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h index be81b40f51d2..95b1bd18809c 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h @@ -341,7 +341,7 @@ struct vchiq_service_quota { int previous_tx_index; }; -typedef struct vchiq_shared_state_struct { +struct vchiq_shared_state { /* A non-zero value here indicates that the content is valid. */ int initialised; @@ -380,7 +380,7 @@ typedef struct vchiq_shared_state_struct { /* Debugging state */ int debug[DEBUG_MAX]; -} VCHIQ_SHARED_STATE_T; +}; typedef struct vchiq_slot_zero_struct { int magic; @@ -391,8 +391,8 @@ typedef struct vchiq_slot_zero_struct { int max_slots; int max_slots_per_side; int platform_data[2]; - VCHIQ_SHARED_STATE_T master; - VCHIQ_SHARED_STATE_T slave; + struct vchiq_shared_state master; + struct vchiq_shared_state slave; VCHIQ_SLOT_INFO_T slots[VCHIQ_MAX_SLOTS]; } VCHIQ_SLOT_ZERO_T; @@ -402,8 +402,8 @@ struct vchiq_state_struct { VCHIQ_CONNSTATE_T conn_state; short version_common; - VCHIQ_SHARED_STATE_T *local; - VCHIQ_SHARED_STATE_T *remote; + struct vchiq_shared_state *local; + struct vchiq_shared_state *remote; VCHIQ_SLOT_T *slot_data; unsigned short default_slot_quota; |