OSDN Git Service

staging: vc04_services: Remove VCHIQ_DEBUGFS_NODE_T typedef
authorDominic Braun <inf.braun@fau.de>
Fri, 14 Dec 2018 12:04:53 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 13:34:25 +0000 (14:34 +0100)
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>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.h

index 1bb298f..9ba9735 100644 (file)
@@ -150,7 +150,7 @@ struct vchiq_instance_struct {
        struct list_head bulk_waiter_list;
        struct mutex bulk_waiter_list_mutex;
 
-       VCHIQ_DEBUGFS_NODE_T debugfs_node;
+       struct vchiq_debugfs_node debugfs_node;
 };
 
 struct dump_context {
@@ -3213,7 +3213,7 @@ vchiq_release_service_internal(VCHIQ_SERVICE_T *service)
        return vchiq_release_internal(service->state, service);
 }
 
-VCHIQ_DEBUGFS_NODE_T *
+struct vchiq_debugfs_node *
 vchiq_instance_get_debugfs_node(VCHIQ_INSTANCE_T instance)
 {
        return &instance->debugfs_node;
index 377e283..5a62ef7 100644 (file)
@@ -192,7 +192,7 @@ vchiq_use_internal(VCHIQ_STATE_T *state, VCHIQ_SERVICE_T *service,
 extern VCHIQ_STATUS_T
 vchiq_release_internal(VCHIQ_STATE_T *state, VCHIQ_SERVICE_T *service);
 
-extern VCHIQ_DEBUGFS_NODE_T *
+extern struct vchiq_debugfs_node *
 vchiq_instance_get_debugfs_node(VCHIQ_INSTANCE_T instance);
 
 extern int
index 46ba219..3928287 100644 (file)
@@ -231,7 +231,8 @@ void vchiq_debugfs_add_instance(VCHIQ_INSTANCE_T instance)
 
 void vchiq_debugfs_remove_instance(VCHIQ_INSTANCE_T instance)
 {
-       VCHIQ_DEBUGFS_NODE_T *node = vchiq_instance_get_debugfs_node(instance);
+       struct vchiq_debugfs_node *node =
+                               vchiq_instance_get_debugfs_node(instance);
 
        debugfs_remove_recursive(node->dentry);
 }
index 3af6397..5be1a56 100644 (file)
@@ -36,9 +36,9 @@
 
 #include "vchiq_core.h"
 
-typedef struct vchiq_debugfs_node_struct {
+struct vchiq_debugfs_node {
     struct dentry *dentry;
-} VCHIQ_DEBUGFS_NODE_T;
+};
 
 void vchiq_debugfs_init(void);