]> www.infradead.org Git - users/hch/misc.git/commitdiff
media: qcom: venus: Pass file pointer to venus_close_common()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 10 Aug 2025 01:30:07 +0000 (04:30 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 13 Aug 2025 06:33:34 +0000 (08:33 +0200)
In preparation for a tree-wide rework automated with coccinelle that
will need to access a struct file pointer in the venus_close_common()
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>
drivers/media/platform/qcom/venus/core.c
drivers/media/platform/qcom/venus/core.h
drivers/media/platform/qcom/venus/vdec.c
drivers/media/platform/qcom/venus/venc.c

index 4c049c694d9c43845c4c0eb51e260808dc9136ac..5e1ace16a4903999c7fd7a985317dae8dd2410ba 100644 (file)
@@ -596,7 +596,7 @@ err_cpucfg_path:
        return ret;
 }
 
-void venus_close_common(struct venus_inst *inst)
+void venus_close_common(struct venus_inst *inst, struct file *filp)
 {
        /*
         * Make sure we don't have IRQ/IRQ-thread currently running
index 3c0c5f9dbe7bd54975e44ae87ee3df442305c0fe..db7b69b91db5649bbd9cad0866f0853f796897ac 100644 (file)
@@ -573,5 +573,5 @@ is_fw_rev_or_older(struct venus_core *core, u32 vmajor, u32 vminor, u32 vrev)
                (core)->venus_ver.rev <= vrev);
 }
 
-void venus_close_common(struct venus_inst *inst);
+void venus_close_common(struct venus_inst *inst, struct file *filp);
 #endif
index 29b0d6a5303d7ae08ac25a10e402ba65120eb666..d10ca6d89f6d76c052b27b1154c8dd9c49466e23 100644 (file)
@@ -1755,7 +1755,7 @@ static int vdec_close(struct file *file)
 
        vdec_pm_get(inst);
        cancel_work_sync(&inst->delayed_process_work);
-       venus_close_common(inst);
+       venus_close_common(inst, file);
        ida_destroy(&inst->dpb_ids);
        vdec_pm_put(inst, false);
 
index c0a0ccdded8015bf3c99ab2dff404a64afca8dff..0838d64ce8fee5dd8299d5c394e97910f10f7ee3 100644 (file)
@@ -1537,7 +1537,7 @@ static int venc_close(struct file *file)
        struct venus_inst *inst = to_inst(file);
 
        venc_pm_get(inst);
-       venus_close_common(inst);
+       venus_close_common(inst, file);
        inst->enc_state = VENUS_ENC_STATE_DEINIT;
        venc_pm_put(inst, false);