drm/i915/bw: make struct intel_bw_state opaque
authorJani Nikula <jani.nikula@intel.com>
Wed, 25 Jun 2025 10:32:26 +0000 (13:32 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 26 Jun 2025 08:55:53 +0000 (11:55 +0300)
commitd7ecd05da71e2328a93c33fbc1c2611babe83ab1
tree6a0a6800b321b80d187bf10740cbada55c007181
parent2e5822368c07316d66fe016c46bbc8e50d7b7203
drm/i915/bw: make struct intel_bw_state opaque

With all the code touching struct intel_bw_state moved inside
intel_bw.c, we move the struct definition there too, and make the type
opaque. to_intel_bw_state() needs to be turned into a proper
function. All of this nicely reduces includes from intel_bw.h.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/743ba67e4e3c5dac4f5e58ab4d2357edea601d09.1750847509.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_bw.c
drivers/gpu/drm/i915/display/intel_bw.h