move GENMASK definition to util.h

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2015-12-06 18:13:34 +01:00
parent 62ecfb9730
commit 7150f5222f
2 changed files with 6 additions and 6 deletions
+6
View File
@@ -16,6 +16,12 @@
#define __MT76_UTIL_H
#include <linux/skbuff.h>
#include <linux/bitops.h>
#ifndef GENMASK
#define GENMASK(h, l) (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l))
#endif
/*
* Power of two check, this will check