Pārlūkot izejas kodu

disp: rotator: use proper dma buf API for cpu access unmap

This change adds support to use dma_buf_vunmap
instead of dma_buf_kunmap as the latter is
deprecated.

Change-Id: I665c410b1f75854a8840e1da8a21ba2b5cc65ad8
Signed-off-by: Gaurav LNU <[email protected]>
Signed-off-by: Vinod Polimera <[email protected]>
Gaurav LNU 2 gadi atpakaļ
vecāks
revīzija
fbb942c2bb
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      rotator/sde_rotator_r3.c

+ 2 - 2
rotator/sde_rotator_r3.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
  */
 
@@ -1243,7 +1243,7 @@ static void sde_hw_rotator_map_vaddr(struct sde_dbg_buf *dbgbuf,
 static void sde_hw_rotator_unmap_vaddr(struct sde_dbg_buf *dbgbuf)
 {
 	if (dbgbuf->vaddr) {
-		dma_buf_kunmap(dbgbuf->dmabuf, 0, dbgbuf->vaddr);
+		dma_buf_vunmap(dbgbuf->dmabuf, dbgbuf->vaddr);
 		dma_buf_end_cpu_access(dbgbuf->dmabuf, DMA_FROM_DEVICE);
 	}