tests: util: Fixup util_open() parameter order

util_open() takes a device parameter, followed by a module parameter.
The existing tests used the drmOpen() function, which uses a different
ordering of the parameters, and the old ordering was accidentally kept
during the conversion.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
main
Thierry Reding 2016-01-05 15:21:23 +01:00 committed by Emil Velikov
parent 2ad5ea780b
commit 1674147a14
3 changed files with 3 additions and 3 deletions

View File

@ -1603,7 +1603,7 @@ int main(int argc, char **argv)
if (!args)
encoders = connectors = crtcs = planes = framebuffers = 1;
dev.fd = util_open(module, device);
dev.fd = util_open(device, module);
if (dev.fd < 0)
return -1;

View File

@ -295,7 +295,7 @@ int main(int argc, char *argv[])
args = argc - optind;
fd = util_open(module, device);
fd = util_open(device, module);
if (fd < 0)
return 1;

View File

@ -120,7 +120,7 @@ int main(int argc, char **argv)
}
}
fd = util_open(module, device);
fd = util_open(device, module);
if (fd < 0)
return 1;