qcacmn: Add qdf roundup macro
Add qdf utility macro to roundup the input value Change-Id: Ic1a7ee0d3a35090b3d0f24858ba8003eee86b057 CRs-Fixed: 947086
This commit is contained in:

gecommit door
Vishwajith Upendra

bovenliggende
8e73708b0e
commit
4afc7c37ac
@@ -112,6 +112,14 @@ static inline int qdf_status_to_os_return(QDF_STATUS status)
|
||||
*/
|
||||
#define QDF_IS_PWR2(value) (((value) ^ ((value)-1)) == ((value) << 1) - 1)
|
||||
|
||||
/**
|
||||
* qdf_roundup() - roundup the input value
|
||||
* @x: value to roundup
|
||||
* @y: input value rounded to multiple of this
|
||||
*
|
||||
* Return: rounded value
|
||||
*/
|
||||
#define qdf_roundup(x, y) __qdf_roundup(x, y)
|
||||
|
||||
/**
|
||||
* qdf_is_macaddr_equal() - compare two QDF MacAddress
|
||||
|
Verwijs in nieuw issue
Block a user