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
@@ -14,12 +14,6 @@
#ifndef __MT76x2_REGS_H
#define __MT76x2_REGS_H
#include <linux/bitops.h>
#ifndef GENMASK
#define GENMASK(h, l) (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l))
#endif
#define MT_ASIC_VERSION 0x0000
#define MT76XX_REV_E3 0x22
+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