mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
drm/i915: Introduce a for_each_plane() macro
Tired of copy/pasting things around.
v2: Rebase on top of the for_each_pipe() change adding dev_priv as first
argument.
Signed-off-by: Damien Lespiau <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
This commit is contained in:
parent
2789339044
commit
2d025a5b76
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ enum hpd_pin {
|
|||
|
||||
#define for_each_pipe(__dev_priv, __p) \
|
||||
for ((__p) = 0; (__p) < INTEL_INFO(__dev_priv)->num_pipes; (__p)++)
|
||||
#define for_each_plane(pipe, p) \
|
||||
for ((p) = 0; (p) < INTEL_INFO(dev)->num_sprites[(pipe)] + 1; (p)++)
|
||||
#define for_each_sprite(p, s) for ((s) = 0; (s) < INTEL_INFO(dev)->num_sprites[(p)]; (s)++)
|
||||
|
||||
#define for_each_crtc(dev, crtc) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue