diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2019-03-13 12:35:12 +0100 |
---|---|---|
committer | Michał Winiarski <michal.winiarski@intel.com> | 2019-03-20 10:36:36 +0100 |
commit | bdf280f8e3e92911f51c52d4041c762c59d21abd (patch) | |
tree | 9ceecd6082e31e1e2eee60bc89971d16358a02ae /tests/i915/i915_pm_rpm.c | |
parent | baec59ef68a853cda115e3064a8e9c969eba6a8e (diff) |
lib/igt_device: Introduce igt_device_get_card_index
And use it! But let's start small.
Rather than going with "and by the way, here's the card index" from
igt_sysfs_path, we're making things more explicit.
v2: Drop idx comment. (Chris)
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/i915/i915_pm_rpm.c')
-rw-r--r-- | tests/i915/i915_pm_rpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c index 759c76ea..03de609c 100644 --- a/tests/i915/i915_pm_rpm.c +++ b/tests/i915/i915_pm_rpm.c @@ -962,7 +962,7 @@ static void sysfs_read_subtest(void) { char path[80]; - igt_require_f(igt_sysfs_path(drm_fd, path, sizeof(path), NULL), + igt_require_f(igt_sysfs_path(drm_fd, path, sizeof(path)), "Can't find the sysfs directory\n"); walk_fs(path); } |