[PATCH 0/4] drm/i915: Use container_of_const()

Ville Syrjala ville.syrjala at linux.intel.com
Thu Mar 7 15:18:06 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Start using container_of_const() for some extra const safety.

Ville Syrjälä (4):
  drm/i915/dsi: Use enc_to_intel_dsi()
  drm/i915: Don't cast away const
  drm/i915: Use container_of_const() for states
  drm/i915: Drop pointless (void*) cast

 drivers/gpu/drm/i915/display/icl_dsi.c             |  3 +--
 drivers/gpu/drm/i915/display/intel_atomic.c        |  2 +-
 drivers/gpu/drm/i915/display/intel_bw.h            |  3 ++-
 drivers/gpu/drm/i915/display/intel_cdclk.h         |  4 +++-
 drivers/gpu/drm/i915/display/intel_display_types.h | 14 ++++++++++----
 drivers/gpu/drm/i915/display/intel_pmdemand.h      |  5 ++---
 drivers/gpu/drm/i915/display/intel_sdvo.c          |  4 ++--
 drivers/gpu/drm/i915/display/intel_tv.c            |  3 ++-
 drivers/gpu/drm/i915/display/skl_watermark.h       |  4 +++-
 drivers/gpu/drm/i915/display/vlv_dsi.c             |  3 +--
 10 files changed, 27 insertions(+), 18 deletions(-)

-- 
2.43.0



More information about the Intel-gfx mailing list