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
parent
2ad5ea780b
commit
1674147a14
|
@ -1603,7 +1603,7 @@ int main(int argc, char **argv)
|
||||||
if (!args)
|
if (!args)
|
||||||
encoders = connectors = crtcs = planes = framebuffers = 1;
|
encoders = connectors = crtcs = planes = framebuffers = 1;
|
||||||
|
|
||||||
dev.fd = util_open(module, device);
|
dev.fd = util_open(device, module);
|
||||||
if (dev.fd < 0)
|
if (dev.fd < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
|
@ -295,7 +295,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
args = argc - optind;
|
args = argc - optind;
|
||||||
|
|
||||||
fd = util_open(module, device);
|
fd = util_open(device, module);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fd = util_open(module, device);
|
fd = util_open(device, module);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue