mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 19:14:18 -04:00
staging: vc04_services: Remove VCHIQ_SLOT_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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a610360370
commit
6f1e4141c7
@@ -2180,7 +2180,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero)
|
||||
|
||||
state->local = local;
|
||||
state->remote = remote;
|
||||
state->slot_data = (VCHIQ_SLOT_T *)slot_zero;
|
||||
state->slot_data = (struct vchiq_slot *)slot_zero;
|
||||
|
||||
/*
|
||||
initialize events and mutexes
|
||||
|
||||
@@ -270,9 +270,9 @@ typedef struct opaque_platform_state_t *VCHIQ_PLATFORM_STATE_T;
|
||||
|
||||
typedef struct vchiq_state_struct VCHIQ_STATE_T;
|
||||
|
||||
typedef struct vchiq_slot_struct {
|
||||
struct vchiq_slot {
|
||||
char data[VCHIQ_SLOT_SIZE];
|
||||
} VCHIQ_SLOT_T;
|
||||
};
|
||||
|
||||
struct vchiq_slot_info {
|
||||
/* Use two counters rather than one to avoid the need for a mutex. */
|
||||
@@ -404,7 +404,7 @@ struct vchiq_state_struct {
|
||||
|
||||
struct vchiq_shared_state *local;
|
||||
struct vchiq_shared_state *remote;
|
||||
VCHIQ_SLOT_T *slot_data;
|
||||
struct vchiq_slot *slot_data;
|
||||
|
||||
unsigned short default_slot_quota;
|
||||
unsigned short default_message_quota;
|
||||
|
||||
Reference in New Issue
Block a user