drm/i915: use for_each_power_well in lookup_power_well()
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 20 Aug 2018 23:31:37 +0000 (16:31 -0700)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 24 Aug 2018 19:49:07 +0000 (12:49 -0700)
commit0229bfd42bbe7fd49d23b5f696c22241096b8847
tree647557e863c627486368dbac807d366f38f0bf08
parent99da0b35396f3907fa8594b554bf81904389c48c
drm/i915: use for_each_power_well in lookup_power_well()

Use the nice helper function to make the implementation simpler.

v2: Rebase.

Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com> (v1)
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180820233139.11936-3-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c