diff options
| author | Lukasz Kalamarz <lukasz.kalamarz@intel.com> | 2019-07-03 13:05:41 +0200 |
|---|---|---|
| committer | Lukasz Kalamarz <lukasz.kalamarz@intel.com> | 2019-07-04 13:30:45 +0200 |
| commit | 4d710ea530aca69304df37191802476f406746ca (patch) | |
| tree | de3f4830f98d2dfb84d10879dacff11bc28c1abc /lib | |
| parent | 42b23c85f2ca9d0a9f88f13747158a972442a16d (diff) | |
lib/intel_chipset: Move BIT macro to common place
This macro is defined in two tests. We can move it to common place
in ioctl_wrappers, which is included by all tests.
v2: Missed intel_device_info lib. Moved BIT definition to
intel_chipset, which is part of igt.h
Signed-off-by: Lukasz Kalamarz <lukasz.kalamarz@intel.com>
Cc: Katarzyna Dec <katarzyna.dec@intel.com>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Reviewed-by: Katarzyna Dec <katarzyna.dec@intel.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/intel_chipset.h | 2 | ||||
| -rw-r--r-- | lib/intel_device_info.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 7fc9bd77..74a40a46 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -31,6 +31,8 @@ #include <pciaccess.h> #include <stdbool.h> +#define BIT(x) (1ul <<(x)) + struct pci_device *intel_get_pci_device(void); uint32_t intel_get_drm_devid(int fd); diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 88be2917..be192b61 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -3,8 +3,6 @@ #include <strings.h> /* ffs() */ -#define BIT(x) (1<<(x)) - static const struct intel_device_info intel_generic_info = { .gen = 0, }; |
