msm: camera: req_mgr: Update list_head to const

Starting with kernel 5.14+ callbacks using list_head structs need to
be const qualified.

CRs-Fixed: 3048249
Change-Id: I80611317b5a69fee8bb0901697d8a6df1bd4aab8
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
This commit is contained in:
Karthik Jayakumar
2021-10-05 13:18:21 -07:00
parent ed82a7cc9c
commit 523de2982c
3 changed files with 34 additions and 19 deletions

View File

@@ -11,6 +11,7 @@
#include <linux/component.h>
#include <linux/iommu.h>
#include <linux/qcom_scm.h>
#include <linux/list_sort.h>
#include "cam_csiphy_dev.h"
#include "cam_cpastop_hw.h"
@@ -47,4 +48,12 @@ void cam_check_iommu_faults(struct iommu_domain *domain,
struct cam_smmu_pf_info *pf_info);
int cam_get_ddr_type(void);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
int cam_req_mgr_ordered_list_cmp(void *priv,
const struct list_head *head_1, const struct list_head *head_2);
#else
int cam_req_mgr_ordered_list_cmp(void *priv,
struct list_head *head_1, struct list_head *head_2);
#endif
#endif /* _CAM_COMPAT_H_ */