msm: camera: common: dma-buf: support users to change dma_buf name
This change add name to dma_buf, it's difficult to debug kernel dma_buf users as until now as we could not set it at kernel side. dma_buf_set_name function is exported by Android kernel. So in future if it is exported for any kernel version then based on that we need to support. CRs-Fixed: 3728228 Signed-off-by: Soumen Ghosh <quic_soumeng@quicinc.com> Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com> Change-Id: I556992cb4fd4cbedb820dae5b976f3a77dd6022e
This commit is contained in:
@@ -676,8 +676,8 @@ int cam_i3c_driver_remove(struct i3c_device *client)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (KERNEL_VERSION(5, 15, 0) <= LINUX_VERSION_CODE && \
|
#if (KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE && \
|
||||||
KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE)
|
KERNEL_VERSION(6, 6, 0) > LINUX_VERSION_CODE)
|
||||||
long cam_dma_buf_set_name(struct dma_buf *dmabuf, const char *name)
|
long cam_dma_buf_set_name(struct dma_buf *dmabuf, const char *name)
|
||||||
{
|
{
|
||||||
long ret = 0;
|
long ret = 0;
|
||||||
|
مرجع در شماره جدید
Block a user