linux_dsm_epyc7002/drivers/media/platform/mtk-vcodec
Tom Rix 2c0a480ac5 media: mtk-vcodec: fix argument used when DEBUG is defined
[ Upstream commit a04e187d231086a1313fd635ac42bdbc997137ad ]

When DEBUG is defined this error occurs

drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c:306:41:
  error: ‘i’ undeclared (first use in this function)
  mtk_v4l2_debug(2, "reg[%d] base=0x%p", i, dev->reg_base[VENC_SYS]);

Reviewing the old line

	mtk_v4l2_debug(2, "reg[%d] base=0x%p", i, dev->reg_base[i]);

All the i's need to be changed to VENC_SYS.
Fix a similar error for VENC_LT_SYS.

Fixes: 0dc4b32861 ("media: mtk-vcodec: venc: support SCP firmware")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:43 +01:00
..
vdec media: mtk-vcodec: fix error return code in vdec_vp9_decode() 2021-03-04 11:37:39 +01:00
venc media: mtk-vcodec: venc: support SCP firmware 2020-09-26 10:03:39 +02:00
Makefile media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled 2020-11-05 14:32:11 +01:00
mtk_vcodec_dec_drv.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_dec_pm.c media: mtk-vcodec: add missing put_device() call in mtk_vcodec_release_dec_pm() 2020-12-30 11:53:11 +01:00
mtk_vcodec_dec_pm.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_dec.c media: mtk-vcodec: mtk_vcodec_dec.c: fix comparison to bool 2020-08-29 07:47:54 +02:00
mtk_vcodec_dec.h media: mtk-vcodec: use v4l2_m2m_buffer where appropriate 2020-01-09 14:46:41 +01:00
mtk_vcodec_drv.h media: mtk-vcodec: add support for MT8183 encoder 2020-09-26 10:07:05 +02:00
mtk_vcodec_enc_drv.c media: mtk-vcodec: fix argument used when DEBUG is defined 2021-03-04 11:37:43 +01:00
mtk_vcodec_enc_pm.c media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_enc_pm() 2020-12-30 11:53:11 +01:00
mtk_vcodec_enc_pm.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_enc.c media: mtk-vcodec: venc: fix invalid time per frame in S_PARM 2020-09-26 10:11:26 +02:00
mtk_vcodec_enc.h media: mtk-vcodec: use v4l2_m2m_buffer where appropriate 2020-01-09 14:46:41 +01:00
mtk_vcodec_fw_priv.h media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled 2020-11-05 14:32:11 +01:00
mtk_vcodec_fw_scp.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_fw_vpu.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_fw.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_fw.h media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_intr.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_intr.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_util.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
mtk_vcodec_util.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
vdec_drv_base.h media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
vdec_drv_if.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
vdec_drv_if.h media: mtk-vcodec: remove unneeded proxy functions 2019-06-21 17:10:20 -04:00
vdec_ipi_msg.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
vdec_vpu_if.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
vdec_vpu_if.h media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
venc_drv_base.h media: mtk-vcodec: avoid unneeded pointer-to-long conversions 2019-06-21 17:09:30 -04:00
venc_drv_if.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
venc_drv_if.h media: mtk-vcodec: venc: support SCP firmware 2020-09-26 10:03:39 +02:00
venc_ipi_msg.h media: mtk-vcodec: venc: handle firmware version field 2020-09-26 10:04:39 +02:00
venc_vpu_if.c media: mtk-vcodec: venc: handle firmware version field 2020-09-26 10:04:39 +02:00
venc_vpu_if.h media: mtk-vcodec: venc: support SCP firmware 2020-09-26 10:03:39 +02:00