aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/vc04_services/interface/vchi/vchi.h
diff options
context:
space:
mode:
authorAdrien Descamps <adrien.descamps@gmail.com>2017-01-17 19:57:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-19 11:30:32 +0100
commit564f87f95263a15667ddf32dd14f707d3a2aeb81 (patch)
treed4adddab222b7c4a7c9cad7006c2bc79ffd565c3 /drivers/staging/vc04_services/interface/vchi/vchi.h
parentstaging: lustre: lnet: change sfw_counter_t to proper structure (diff)
downloadwireguard-linux-564f87f95263a15667ddf32dd14f707d3a2aeb81.tar.xz
wireguard-linux-564f87f95263a15667ddf32dd14f707d3a2aeb81.zip
staging: vc04: Fix coding style errors "open brace go on the same line"
Open braces for enum, union and struct go on the same line. Signed-off-by: Adrien Descamps <adrien.descamps@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/interface/vchi/vchi.h')
-rw-r--r--drivers/staging/vc04_services/interface/vchi/vchi.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_services/interface/vchi/vchi.h
index d6937288210c..44169d6c5a36 100644
--- a/drivers/staging/vc04_services/interface/vchi/vchi.h
+++ b/drivers/staging/vc04_services/interface/vchi/vchi.h
@@ -61,8 +61,7 @@ struct vchi_version {
#define VCHI_VERSION(v_) { v_, v_ }
#define VCHI_VERSION_EX(v_, m_) { v_, m_ }
-typedef enum
-{
+typedef enum {
VCHI_VEC_POINTER,
VCHI_VEC_HANDLE,
VCHI_VEC_LIST
@@ -71,26 +70,22 @@ typedef enum
typedef struct vchi_msg_vector_ex {
VCHI_MSG_VECTOR_TYPE_T type;
- union
- {
+ union {
// a memory handle
- struct
- {
+ struct {
VCHI_MEM_HANDLE_T handle;
uint32_t offset;
int32_t vec_len;
} handle;
// an ordinary data pointer
- struct
- {
+ struct {
const void *vec_base;
int32_t vec_len;
} ptr;
// a nested vector list
- struct
- {
+ struct {
struct vchi_msg_vector_ex *vec;
uint32_t vec_len;
} list;
@@ -114,8 +109,7 @@ struct opaque_vchi_service_t;
// Descriptor for a held message. Allocated by client, initialised by vchi_msg_hold,
// vchi_msg_iter_hold or vchi_msg_iter_hold_next. Fields are for internal VCHI use only.
-typedef struct
-{
+typedef struct {
struct opaque_vchi_service_t *service;
void *message;
} VCHI_HELD_MSG_T;