From 7150f5222f8ef12f32b450ae029e1af5e1edd9ed Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 6 Dec 2015 18:13:34 +0100 Subject: [PATCH] move GENMASK definition to util.h Signed-off-by: Felix Fietkau --- mt76x2_regs.h | 6 ------ util.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mt76x2_regs.h b/mt76x2_regs.h index 6169eca1..50c66069 100644 --- a/mt76x2_regs.h +++ b/mt76x2_regs.h @@ -14,12 +14,6 @@ #ifndef __MT76x2_REGS_H #define __MT76x2_REGS_H -#include - -#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 diff --git a/util.h b/util.h index 1742f2dc..f0c6e7ae 100644 --- a/util.h +++ b/util.h @@ -16,6 +16,12 @@ #define __MT76_UTIL_H #include +#include + +#ifndef GENMASK +#define GENMASK(h, l) (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l)) +#endif + /* * Power of two check, this will check