mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
media: chips-media: wave5: Pass file pointer to wave5_cleanup_instance()
In preparation for a tree-wide rework automated with coccinelle that will need to access a struct file pointer in the wave5_cleanup_instance() function, pass it from the callers. There is not functional change yet. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
9c7ee49948
commit
b2eeb35c61
|
|
@ -27,7 +27,7 @@ const char *state_to_str(enum vpu_instance_state state)
|
|||
}
|
||||
}
|
||||
|
||||
void wave5_cleanup_instance(struct vpu_instance *inst)
|
||||
void wave5_cleanup_instance(struct vpu_instance *inst, struct file *filp)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ int wave5_vpu_release_device(struct file *filp,
|
|||
}
|
||||
}
|
||||
|
||||
wave5_cleanup_instance(inst);
|
||||
wave5_cleanup_instance(inst, filp);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
#define MAX_FMTS 12
|
||||
|
||||
const char *state_to_str(enum vpu_instance_state state);
|
||||
void wave5_cleanup_instance(struct vpu_instance *inst);
|
||||
void wave5_cleanup_instance(struct vpu_instance *inst, struct file *filp);
|
||||
int wave5_vpu_release_device(struct file *filp,
|
||||
int (*close_func)(struct vpu_instance *inst, u32 *fail_res),
|
||||
char *name);
|
||||
|
|
|
|||
|
|
@ -1840,7 +1840,7 @@ static int wave5_vpu_open_dec(struct file *filp)
|
|||
return 0;
|
||||
|
||||
cleanup_inst:
|
||||
wave5_cleanup_instance(inst);
|
||||
wave5_cleanup_instance(inst, filp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1784,7 +1784,7 @@ static int wave5_vpu_open_enc(struct file *filp)
|
|||
return 0;
|
||||
|
||||
cleanup_inst:
|
||||
wave5_cleanup_instance(inst);
|
||||
wave5_cleanup_instance(inst, filp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user