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:
Laurent Pinchart 2025-08-10 04:30:03 +03:00 committed by Hans Verkuil
parent 9c7ee49948
commit b2eeb35c61
4 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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;
}

View File

@ -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;
}