diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2021-07-10 23:12:04 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2021-07-15 12:01:56 -0700 |
commit | d491d3c7bc8ab45b4c03ed287a176d404c34c38e (patch) | |
tree | 29dea33ea36f5e1a047fd71b212c2669ac1bcbf5 /tests/i915/i915_getparams_basic.c | |
parent | ac539412cc51238e229337aa4febe6de93050f91 (diff) |
Remove local copies of I915 macros
Just use the one from the kernel headers. Updated with:
git grep -l LOCAL_I915 | \
xargs sed -i -e '/^#define LOCAL_I915/d' -e 's/LOCAL_\(I915[[:alnum:]_]*\)/\1/g'
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/i915/i915_getparams_basic.c')
-rw-r--r-- | tests/i915/i915_getparams_basic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/i915/i915_getparams_basic.c b/tests/i915/i915_getparams_basic.c index e1b4634f..09b38d8a 100644 --- a/tests/i915/i915_getparams_basic.c +++ b/tests/i915/i915_getparams_basic.c @@ -49,8 +49,6 @@ deinit(void) close(drm_fd); } -#define LOCAL_I915_PARAM_SUBSLICE_TOTAL 33 -#define LOCAL_I915_PARAM_EU_TOTAL 34 static int getparam(int param, int *value) @@ -74,7 +72,7 @@ subslice_total(void) unsigned int subslice_total = 0; int ret; - ret = getparam(LOCAL_I915_PARAM_SUBSLICE_TOTAL, (int*)&subslice_total); + ret = getparam(I915_PARAM_SUBSLICE_TOTAL, (int*)&subslice_total); igt_skip_on_f(ret == -EINVAL && intel_gen(devid), "Interface not supported by kernel\n"); if (ret) { @@ -111,7 +109,7 @@ eu_total(void) unsigned int eu_total = 0; int ret; - ret = getparam(LOCAL_I915_PARAM_EU_TOTAL, (int*)&eu_total); + ret = getparam(I915_PARAM_EU_TOTAL, (int*)&eu_total); igt_skip_on_f(ret == -EINVAL, "Interface not supported by kernel\n"); if (ret) { |