Skip to contentSkip to conversation

drm/i915: remove duplicate definition of for_each_power_domain

PATCH In review Jani Nikula 2 participants 3 messages Nov 24, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: remove duplicate definition of for_each_power_domain

commit b04c5bd6fda54703e56f29569e4bca489d6c5a5c

Author: Borun Fu <[email protected]>
Date:   Sat Jul 12 10:02:27 2014 +0530

drm/i915: Power gating display wells during i915_pm_suspend

moved for_each_power_domain from intel_display.c to i915_drv.h but we still have the definition around in intel_display.c, presumably due to a merge conflict resolution gone wrong (that I didn't bother to try to find). Just remove the extra definition left behind.

---
 drivers/gpu/drm/i915/intel_display.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/i915/intel_display.c +0 -4
index 21f703397f09..75f03e5bee51 100644
@@ -5232,10 +5232,6 @@ static enum intel_display_power_domain port_to_aux_power_domain(enum port port)
 	}
 }
 
-#define for_each_power_domain(domain, mask)				\
-	for ((domain) = 0; (domain) < POWER_DOMAIN_NUM; (domain)++)	\
-		if ((1 << (domain)) & (mask))
-
 enum intel_display_power_domain
 intel_display_port_power_domain(struct intel_encoder *intel_encoder)
 {
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jani Nikula

commit b04c5bd6fda54703e56f29569e4bca489d6c5a5c

Author: Borun Fu <[email protected]>
Date:   Sat Jul 12 10:02:27 2014 +0530
Quoted 8 lines

drm/i915: Power gating display wells during i915_pm_suspend

moved for_each_power_domain from intel_display.c to i915_drv.h but we still have the definition around in intel_display.c, presumably due to a merge conflict resolution gone wrong (that I didn't bother to try to find). Just remove the extra definition left behind.

It was me in

commit 4dac3edfe68e5e1b3c2216b84ba160572420fa40
Merge: 487777673e35 e05444be705b
Author: Daniel Vetter <[email protected]>
Date: Tue Jul 29 20:49:36 2014 +0200

Merge remote-tracking branch 'airlied/drm-next' into drm-intel-next

Somehow git isn't too awesome at displaying screwed-up resolotions.

Quoted 26 lines
---
 drivers/gpu/drm/i915/intel_display.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/i915/intel_display.c +0 -4
index 21f703397f09..75f03e5bee51 100644
@@ -5232,10 +5232,6 @@ static enum intel_display_power_domain port_to_aux_power_domain(enum port port)
 	}
 }
 
-#define for_each_power_domain(domain, mask)				\
-	for ((domain) = 0; (domain) < POWER_DOMAIN_NUM; (domain)++)	\
-		if ((1 << (domain)) & (mask))
-
 enum intel_display_power_domain
 intel_display_port_power_domain(struct intel_encoder *intel_encoder)
 {
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
author Applied
#2 lore raw
Quoted 21 lines · Daniel Vetter
Quoted 4 lines · Jani Nikula

commit b04c5bd6fda54703e56f29569e4bca489d6c5a5c

Author: Borun Fu <[email protected]>
Date:   Sat Jul 12 10:02:27 2014 +0530
Quoted 8 lines

drm/i915: Power gating display wells during i915_pm_suspend

moved for_each_power_domain from intel_display.c to i915_drv.h but we still have the definition around in intel_display.c, presumably due to a merge conflict resolution gone wrong (that I didn't bother to try to find). Just remove the extra definition left behind.

It was me in

commit 4dac3edfe68e5e1b3c2216b84ba160572420fa40
Merge: 487777673e35 e05444be705b
Author: Daniel Vetter <[email protected]>
Date: Tue Jul 29 20:49:36 2014 +0200

Quoted 5 lines

Merge remote-tracking branch 'airlied/drm-next' into drm-intel-next

Somehow git isn't too awesome at displaying screwed-up resolotions.

Pushed to drm-intel-next-queued, with the commit message amended, thanks for the review.

BR,
Jani.

Quoted 27 lines
Quoted 27 lines
---
 drivers/gpu/drm/i915/intel_display.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/i915/intel_display.c +0 -4
index 21f703397f09..75f03e5bee51 100644
@@ -5232,10 +5232,6 @@ static enum intel_display_power_domain port_to_aux_power_domain(enum port port)
 	}
 }
 
-#define for_each_power_domain(domain, mask)				\
-	for ((domain) = 0; (domain) < POWER_DOMAIN_NUM; (domain)++)	\
-		if ((1 << (domain)) & (mask))
-
 enum intel_display_power_domain
 intel_display_port_power_domain(struct intel_encoder *intel_encoder)
 {
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx