drm/i915/display: add i915 parameter to I915_STATE_WARN()
authorJani Nikula <jani.nikula@intel.com>
Fri, 12 May 2023 18:16:58 +0000 (21:16 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 15 May 2023 09:13:54 +0000 (12:13 +0300)
commit6b9bd7c35d32be464591ba704a80ab2db4f2ea4a
tree29d73518bcdaae9bc05b9fd4835f432bcbcbfa82
parentb8e6185bcf5cf41c0195d496bbfe48e5f0ffb3a6
drm/i915/display: add i915 parameter to I915_STATE_WARN()

Add i915 parameter to I915_STATE_WARN() and use device based logging.

Done using cocci + hand edited where there was no i915 local variable
ready.

v2: avoid null deref in verify_connector_state()

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512181658.1735594-1-jani.nikula@intel.com
14 files changed:
drivers/gpu/drm/i915/display/g4x_dp.c
drivers/gpu/drm/i915/display/intel_crtc.c
drivers/gpu/drm/i915/display/intel_cx0_phy.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_dpll.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_fdi.c
drivers/gpu/drm/i915/display/intel_modeset_verify.c
drivers/gpu/drm/i915/display/intel_pch_display.c
drivers/gpu/drm/i915/display/intel_pps.c
drivers/gpu/drm/i915/display/intel_snps_phy.c
drivers/gpu/drm/i915/display/vlv_dsi_pll.c