drm/i915: Remove runtime suspended boolean from intel_runtime_pm struct
authorJouni Högander <jouni.hogander@intel.com>
Wed, 13 Sep 2023 10:04:30 +0000 (13:04 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 18 Sep 2023 05:42:58 +0000 (08:42 +0300)
commit8874288c803fba7fff4d441464cac3a513364fd1
treea9e4795fb8b3abd000bf70508f2e7c8a13b8cdff
parent93caca6a04b1d2ff8c7d817cccaece08f0f08a2f
drm/i915: Remove runtime suspended boolean from intel_runtime_pm struct

It's not necessary to carry separate suspended status information in
intel_runtime_pm struct as this information is already in underlying device
structure. Remove it and use pm_runtime_suspended() to obtain suspended
status information when needed.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230913100430.3433969-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/i915_driver.c
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/intel_runtime_pm.c
drivers/gpu/drm/i915/intel_runtime_pm.h