modetest: allow using -r and -P
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 18 Jan 2023 14:01:22 +0000 (15:01 +0100)
committerDmitry Baryshkov <dbaryshkov@gmail.com>
Sun, 10 Sep 2023 11:55:14 +0000 (11:55 +0000)
Since now -r sets the pipe struct and count like -s we can also
use -P with -r.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
tests/modetest/modetest.c

index 58ef9ec..4b45994 100644 (file)
@@ -2290,11 +2290,6 @@ int main(int argc, char **argv)
                return -1;
        }
 
-       if (set_preferred && plane_count) {
-               fprintf(stderr, "cannot use -r (preferred) when -P (plane) is set\n");
-               return -1;
-       }
-
        dev.fd = util_open(device, module);
        if (dev.fd < 0)
                return -1;