disp: msm: sde: adjust list_sort api to adapt kernel 5.15 params

Latest Kernel modified list_sort to receive 'const' parameters in
its function pointer, this change modifies the functions used
by list_sort to add 'const' parameters.

Change-Id: I83212e1e7a749132c90011d0a8933c5eb2990bd2
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
This commit is contained in:
Ingrid Gallardo
2021-08-31 21:38:59 -07:00
committed by Gerrit - the friendly Code Review server
parent cb20292c2d
commit de3e31a08a

View File

@@ -667,8 +667,8 @@ void sde_mini_dump_add_va_region(const char *name, u32 size, void *virt_addr)
} }
#endif #endif
static int _sde_dump_reg_range_cmp(void *priv, struct list_head *a, static int _sde_dump_reg_range_cmp(void *priv, const struct list_head *a,
struct list_head *b) const struct list_head *b)
{ {
struct sde_dbg_reg_range *ar, *br; struct sde_dbg_reg_range *ar, *br;
@@ -681,8 +681,8 @@ static int _sde_dump_reg_range_cmp(void *priv, struct list_head *a,
return ar->offset.start - br->offset.start; return ar->offset.start - br->offset.start;
} }
static int _sde_dump_blk_phys_addr_cmp(void *priv, struct list_head *a, static int _sde_dump_blk_phys_addr_cmp(void *priv, const struct list_head *a,
struct list_head *b) const struct list_head *b)
{ {
struct sde_dbg_reg_base *ar, *br; struct sde_dbg_reg_base *ar, *br;