diff mbox

[i-g-t,4/8] lib/intel_device_info: Use igt_bitops

Message ID 20170209021828.22813-5-michel.thierry@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michel Thierry Feb. 9, 2017, 2:18 a.m. UTC
BIT macro already defined in the new bitops header.

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
---
 lib/intel_device_info.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Joonas Lahtinen Feb. 9, 2017, 7:35 a.m. UTC | #1
On ke, 2017-02-08 at 18:18 -0800, Michel Thierry wrote:
> BIT macro already defined in the new bitops header.
> 
> Signed-off-by: Michel Thierry <michel.thierry@intel.com>

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

Regards, Joonas
diff mbox

Patch

diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index db4f3831..b5ad6236 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -1,10 +1,9 @@ 
 #include "intel_chipset.h"
 #include "i915_pciids.h"
+#include "igt_bitops.h"
 
 #include <strings.h> /* ffs() */
 
-#define BIT(x) (1<<(x))
-
 static const struct intel_device_info intel_generic_info = {
 	.gen = 0,
 };