qcacmn: Add API to get last entry of linked list

Add API to get last entry of linked list.

CRs-Fixed: 3386125
Change-Id: Id956f3976f4c7651ef367e44c1c430f6eea8d2f9
This commit is contained in:
Edayilliam Jayadev
2023-01-22 11:39:59 +05:30
committed by Madan Koyyalamudi
父節點 0ce3a8e549
當前提交 49b0a152b5
共有 2 個文件被更改,包括 8 次插入0 次删除

查看文件

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2014-2018, 2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -110,6 +111,9 @@ static inline void qdf_list_create(__qdf_list_t *list, uint32_t max_size)
#define qdf_list_first_entry_or_null(list_ptr, type, node_field) \
__qdf_list_first_entry_or_null(list_ptr, type, node_field)
#define qdf_list_last_entry(list_ptr, type, node_field) \
__qdf_list_last_entry(list_ptr, type, node_field)
/**
* qdf_init_list_head() - initialize list head
* @list_head: pointer to list head