Commit 4eef62d6 authored by Dominic Braun's avatar Dominic Braun Committed by Greg Kroah-Hartman
Browse files

staging: vc04_services: Remove DUMP_CONTEXT_T typedef



Typedefing structs is not encouraged in the kernel.

Signed-off-by: default avatarDominic Braun <inf.braun@fau.de>
Signed-off-by: default avatarTobias Büttner <tobias.buettner@fau.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb9a242c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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 @@ static int vchiq_release(struct inode *inode, struct file *file)
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;