msm: camera: mem_mgr: Add dma_buf_vunmap to cam_compat
dma_buf_vunmap function signature changed between kernel version 5.10 and 5.15. CRs-Fixed: 3088126 Change-Id: If6ef72aa7839e358bc6d7a384e628b760ecaf265 Signed-off-by: zhuo <quic_zhuo@quicinc.com>
This commit is contained in:
@@ -354,6 +354,13 @@ int cam_compat_util_get_dmabuf_va(struct dma_buf *dmabuf, uintptr_t *vaddr)
|
||||
return error_code;
|
||||
}
|
||||
|
||||
void cam_compat_util_put_dmabuf_va(struct dma_buf *dmabuf, void *vaddr)
|
||||
{
|
||||
struct dma_buf_map mapping = DMA_BUF_MAP_INIT_VADDR(vaddr);
|
||||
|
||||
dma_buf_vunmap(dmabuf, &mapping);
|
||||
}
|
||||
|
||||
int cam_get_ddr_type(void)
|
||||
{
|
||||
/* We assume all chipsets running kernel version 5.15+
|
||||
@@ -395,6 +402,11 @@ int cam_compat_util_get_dmabuf_va(struct dma_buf *dmabuf, uintptr_t *vaddr)
|
||||
return error_code;
|
||||
}
|
||||
|
||||
void cam_compat_util_put_dmabuf_va(struct dma_buf *dmabuf, void *vaddr)
|
||||
{
|
||||
dma_buf_vunmap(dmabuf, vaddr);
|
||||
}
|
||||
|
||||
int cam_get_ddr_type(void)
|
||||
{
|
||||
return of_fdt_get_ddrtype();
|
||||
|
Reference in New Issue
Block a user