staging: vc04_services: Remove VCHIQ_DEBUGFS_NODE_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:
parent
562943286c
commit
aa987e5513
@ -150,7 +150,7 @@ struct vchiq_instance_struct {
|
|||||||
struct list_head bulk_waiter_list;
|
struct list_head bulk_waiter_list;
|
||||||
struct mutex bulk_waiter_list_mutex;
|
struct mutex bulk_waiter_list_mutex;
|
||||||
|
|
||||||
VCHIQ_DEBUGFS_NODE_T debugfs_node;
|
struct vchiq_debugfs_node debugfs_node;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dump_context {
|
struct dump_context {
|
||||||
@ -3213,7 +3213,7 @@ vchiq_release_service_internal(VCHIQ_SERVICE_T *service)
|
|||||||
return vchiq_release_internal(service->state, 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)
|
vchiq_instance_get_debugfs_node(VCHIQ_INSTANCE_T instance)
|
||||||
{
|
{
|
||||||
return &instance->debugfs_node;
|
return &instance->debugfs_node;
|
||||||
|
@ -192,7 +192,7 @@ vchiq_use_internal(VCHIQ_STATE_T *state, VCHIQ_SERVICE_T *service,
|
|||||||
extern VCHIQ_STATUS_T
|
extern VCHIQ_STATUS_T
|
||||||
vchiq_release_internal(VCHIQ_STATE_T *state, VCHIQ_SERVICE_T *service);
|
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);
|
vchiq_instance_get_debugfs_node(VCHIQ_INSTANCE_T instance);
|
||||||
|
|
||||||
extern int
|
extern int
|
||||||
|
@ -231,7 +231,8 @@ void vchiq_debugfs_add_instance(VCHIQ_INSTANCE_T instance)
|
|||||||
|
|
||||||
void vchiq_debugfs_remove_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);
|
debugfs_remove_recursive(node->dentry);
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,9 @@
|
|||||||
|
|
||||||
#include "vchiq_core.h"
|
#include "vchiq_core.h"
|
||||||
|
|
||||||
typedef struct vchiq_debugfs_node_struct {
|
struct vchiq_debugfs_node {
|
||||||
struct dentry *dentry;
|
struct dentry *dentry;
|
||||||
} VCHIQ_DEBUGFS_NODE_T;
|
};
|
||||||
|
|
||||||
void vchiq_debugfs_init(void);
|
void vchiq_debugfs_init(void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user