projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b30324a
)
drm/i915: Use for_each_pipe in intel_display_crc_init
author
Daniel Vetter
<
[email protected]
>
Thu, 14 Nov 2013 10:30:42 +0000
(11:30 +0100)
committer
Daniel Vetter
<
[email protected]
>
Thu, 14 Nov 2013 11:23:44 +0000
(12:23 +0100)
We have a nice macro, so use it.
Reviewed-by: Damien Lespiau <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/i915_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_debugfs.c
b/drivers/gpu/drm/i915/i915_debugfs.c
index 1dbcc64f9ddbd6b6916583aaa0d667e73bbe16ba..8362dc154af4c2eff6b02a7b6384f220f87d913a 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_debugfs.c
+++ b/
drivers/gpu/drm/i915/i915_debugfs.c
@@
-3014,10
+3014,10
@@
static struct i915_debugfs_files {
void intel_display_crc_init(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
-
int i
;
+
enum pipe pipe
;
- for
(i = 0; i < INTEL_INFO(dev)->num_pipes; i++
) {
- struct intel_pipe_crc *pipe_crc = &dev_priv->pipe_crc[
i
];
+ for
_each_pipe(pipe
) {
+ struct intel_pipe_crc *pipe_crc = &dev_priv->pipe_crc[
pipe
];
pipe_crc->opened = false;
spin_lock_init(&pipe_crc->lock);