Commit 59dad49e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] sh_veu.c: fix two compilation warnings

drivers/media/platform/sh_veu.c:269:2: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat]
drivers/media/platform/sh_veu.c:276:2: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat]

Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6ec5575c
...@@ -266,15 +266,17 @@ static void sh_veu_process(struct sh_veu_dev *veu, ...@@ -266,15 +266,17 @@ static void sh_veu_process(struct sh_veu_dev *veu,
sh_veu_reg_write(veu, VEU_DAYR, addr + veu->vfmt_out.offset_y); sh_veu_reg_write(veu, VEU_DAYR, addr + veu->vfmt_out.offset_y);
sh_veu_reg_write(veu, VEU_DACR, veu->vfmt_out.offset_c ? sh_veu_reg_write(veu, VEU_DACR, veu->vfmt_out.offset_c ?
addr + veu->vfmt_out.offset_c : 0); addr + veu->vfmt_out.offset_c : 0);
dev_dbg(veu->dev, "%s(): dst base %x, y: %x, c: %x\n", __func__, dev_dbg(veu->dev, "%s(): dst base %lx, y: %x, c: %x\n", __func__,
addr, veu->vfmt_out.offset_y, veu->vfmt_out.offset_c); (unsigned long)addr,
veu->vfmt_out.offset_y, veu->vfmt_out.offset_c);
addr = vb2_dma_contig_plane_dma_addr(src_buf, 0); addr = vb2_dma_contig_plane_dma_addr(src_buf, 0);
sh_veu_reg_write(veu, VEU_SAYR, addr + veu->vfmt_in.offset_y); sh_veu_reg_write(veu, VEU_SAYR, addr + veu->vfmt_in.offset_y);
sh_veu_reg_write(veu, VEU_SACR, veu->vfmt_in.offset_c ? sh_veu_reg_write(veu, VEU_SACR, veu->vfmt_in.offset_c ?
addr + veu->vfmt_in.offset_c : 0); addr + veu->vfmt_in.offset_c : 0);
dev_dbg(veu->dev, "%s(): src base %x, y: %x, c: %x\n", __func__, dev_dbg(veu->dev, "%s(): src base %lx, y: %x, c: %x\n", __func__,
addr, veu->vfmt_in.offset_y, veu->vfmt_in.offset_c); (unsigned long)addr,
veu->vfmt_in.offset_y, veu->vfmt_in.offset_c);
sh_veu_reg_write(veu, VEU_STR, 1); sh_veu_reg_write(veu, VEU_STR, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment