drm/i915: Introduce with_intel_display_power_if_enabled()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Sep 2021 14:44:30 +0000 (17:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Sep 2021 15:08:29 +0000 (18:08 +0300)
commitc98e3d15b5820778ea7f9d93531ffb1c91c0108f
tree4dbd8ec0579c6b27cba693b0b521b8532d6928b9
parent8c66081b0b32a5fca6791ee09ccf0e6ef35acce4
drm/i915: Introduce with_intel_display_power_if_enabled()

Add the _if_enabled() counterpart to with_intel_display_power().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210913144440.23008-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_power.h