diff options
author | Katarzyna Dec <katarzyna.dec@intel.com> | 2018-08-31 15:57:16 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-01 10:03:10 +0100 |
commit | 9e5fa9112546e5767d57237db8eace7c815b1996 (patch) | |
tree | fa634fe203d2c6be709f6d5ef0f0f73bf84dc099 /overlay | |
parent | 9d83154c898b5acc8b462d17104df50cfd71e9a0 (diff) |
lib/drmtest: Move open device to separate function
While working on IGT code and during reviewes I've noticed that
it could be nice to have function that is opening particular device.
Let's move out conditions for opening device and rename __open_device
to __search_and_open() function.
v2: Refactored open_device even more by getting device name once and
returning fd for it. (Chris)
v3: Added name_size to __get_drm_device_name, removed unused is_X_device.
v4: Fixed cases with failing virtio_gpu
v5: Rebase, indent fixes
Signed-off-by: Katarzyna Dec <katarzyna.dec@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay')
0 files changed, 0 insertions, 0 deletions