qcacmn: Refer qdf defined macros instead of redefine
Refer qdf_container_of for A_CONTAINING_STRUCT Change-Id: I9cd939bdefb34ae74ac4263ff86830bc83b7068b CRs-Fixed: 3187163
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
d5f73ed96a
commit
ff97c457a2
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2014, 2017, 2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 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
|
||||
@@ -25,9 +26,10 @@
|
||||
#ifndef __DL_LIST_H___
|
||||
#define __DL_LIST_H___
|
||||
|
||||
#include "qdf_util.h"
|
||||
|
||||
#define A_CONTAINING_STRUCT(address, struct_type, field_name) \
|
||||
((struct_type *)((char *)(address) - \
|
||||
(char *)(&((struct_type *)0)->field_name)))
|
||||
(qdf_container_of(address, struct_type, field_name))
|
||||
|
||||
/* list functions */
|
||||
/* pointers for the list */
|
||||
|
Reference in New Issue
Block a user