Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8385c2ec authored by Joonas Lahtinen's avatar Joonas Lahtinen
Browse files

drm/i915: Use for_each_power_domain() in i915_power_domain_info()



Macro seems to do exactly the same thing.

Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1486559530-15141-1-git-send-email-joonas.lahtinen@linux.intel.com
parent 3c779a49
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -2822,16 +2822,11 @@ static int i915_power_domain_info(struct seq_file *m, void *unused)
		seq_printf(m, "%-25s %d\n", power_well->name,
			   power_well->count);

		for (power_domain = 0; power_domain < POWER_DOMAIN_NUM;
		     power_domain++) {
			if (!(BIT(power_domain) & power_well->domains))
				continue;

		for_each_power_domain(power_domain, power_well->domains)
			seq_printf(m, "  %-23s %d\n",
				 intel_display_power_domain_str(power_domain),
				 power_domains->domain_use_count[power_domain]);
	}
	}

	mutex_unlock(&power_domains->lock);