diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-20 11:53:26 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-20 11:55:12 -0500 |
commit | 59dad49e5c176d8c9c0d06f6b744d0a54c578310 (patch) | |
tree | b8863036e9d5ab72439f1f82cd305d7713d9f7c5 | |
parent | 6ec5575c381de50b17e68796435f20ce1b27de79 (diff) |
[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: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/platform/sh_veu.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c index 7365fb5a2615..a0186768479d 100644 --- a/drivers/media/platform/sh_veu.c +++ b/drivers/media/platform/sh_veu.c | |||
@@ -266,15 +266,17 @@ static void sh_veu_process(struct sh_veu_dev *veu, | |||
266 | sh_veu_reg_write(veu, VEU_DAYR, addr + veu->vfmt_out.offset_y); | 266 | sh_veu_reg_write(veu, VEU_DAYR, addr + veu->vfmt_out.offset_y); |
267 | sh_veu_reg_write(veu, VEU_DACR, veu->vfmt_out.offset_c ? | 267 | sh_veu_reg_write(veu, VEU_DACR, veu->vfmt_out.offset_c ? |
268 | addr + veu->vfmt_out.offset_c : 0); | 268 | addr + veu->vfmt_out.offset_c : 0); |
269 | dev_dbg(veu->dev, "%s(): dst base %x, y: %x, c: %x\n", __func__, | 269 | dev_dbg(veu->dev, "%s(): dst base %lx, y: %x, c: %x\n", __func__, |
270 | addr, veu->vfmt_out.offset_y, veu->vfmt_out.offset_c); | 270 | (unsigned long)addr, |
271 | veu->vfmt_out.offset_y, veu->vfmt_out.offset_c); | ||
271 | 272 | ||
272 | addr = vb2_dma_contig_plane_dma_addr(src_buf, 0); | 273 | addr = vb2_dma_contig_plane_dma_addr(src_buf, 0); |
273 | sh_veu_reg_write(veu, VEU_SAYR, addr + veu->vfmt_in.offset_y); | 274 | sh_veu_reg_write(veu, VEU_SAYR, addr + veu->vfmt_in.offset_y); |
274 | sh_veu_reg_write(veu, VEU_SACR, veu->vfmt_in.offset_c ? | 275 | sh_veu_reg_write(veu, VEU_SACR, veu->vfmt_in.offset_c ? |
275 | addr + veu->vfmt_in.offset_c : 0); | 276 | addr + veu->vfmt_in.offset_c : 0); |
276 | dev_dbg(veu->dev, "%s(): src base %x, y: %x, c: %x\n", __func__, | 277 | dev_dbg(veu->dev, "%s(): src base %lx, y: %x, c: %x\n", __func__, |
277 | addr, veu->vfmt_in.offset_y, veu->vfmt_in.offset_c); | 278 | (unsigned long)addr, |
279 | veu->vfmt_in.offset_y, veu->vfmt_in.offset_c); | ||
278 | 280 | ||
279 | sh_veu_reg_write(veu, VEU_STR, 1); | 281 | sh_veu_reg_write(veu, VEU_STR, 1); |
280 | 282 | ||