diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-11 17:41:27 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-11 17:43:22 +0200 |
commit | 8bf115ed9922e435cd26abd55639b089b285c8e0 (patch) | |
tree | dd9e0b55957291eedf2330830da7f6491df56fd1 /lib/igt.cocci | |
parent | 7bf0f7fc58b524f269981c873ca120dbe1c0ae67 (diff) |
lib/igt.cocci: Add stanza for for_each_pipe
Damien dodged this ...
Also run the script while at it.
v2: Don't just capture identifiers for pipe, but also expressions.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt.cocci')
-rw-r--r-- | lib/igt.cocci | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/igt.cocci b/lib/igt.cocci index 3246924f..d399496b 100644 --- a/lib/igt.cocci +++ b/lib/igt.cocci @@ -74,3 +74,13 @@ expression list[n] Ep; @@ -abort(); +igt_fail(1); + +@@ +iterator name for_each_pipe; +igt_display_t *display; +expression pipe; +@@ +- for (pipe = 0; pipe < igt_display_get_n_pipes(display); pipe++) { ++ for_each_pipe (display, pipe) { +... +} |