staging: vc04_services: Remove DUMP_CONTEXT_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
cb9a242c33
commit
4eef62d61c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user