staging: vc04_services: Remove DUMP_CONTEXT_T typedef
authorDominic Braun <inf.braun@fau.de>
Fri, 14 Dec 2018 12:04:38 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 13:30:07 +0000 (14:30 +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

index 34b3216..65bf0fd 100644 (file)
@@ -153,12 +153,12 @@ struct vchiq_instance_struct {
        VCHIQ_DEBUGFS_NODE_T debugfs_node;
 };
 
-typedef struct dump_context_struct {
+struct dump_context {
        char __user *buf;
        size_t actual;
        size_t space;
        loff_t offset;
-} DUMP_CONTEXT_T;
+};
 
 static struct cdev    vchiq_cdev;
 static dev_t          vchiq_devid;
@@ -2111,7 +2111,7 @@ out:
 void
 vchiq_dump(void *dump_context, const char *str, int len)
 {
-       DUMP_CONTEXT_T *context = (DUMP_CONTEXT_T *)dump_context;
+       struct dump_context *context = (struct dump_context *)dump_context;
 
        if (context->actual < context->space) {
                int copy_bytes;
@@ -2239,7 +2239,7 @@ static ssize_t
 vchiq_read(struct file *file, char __user *buf,
        size_t count, loff_t *ppos)
 {
-       DUMP_CONTEXT_T context;
+       struct dump_context context;
 
        context.buf = buf;
        context.actual = 0;