diff options
author | Imre Deak <imre.deak@intel.com> | 2024-08-05 18:07:52 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2024-08-06 12:33:24 +0300 |
commit | ce9b1466f5a9a1b2acc80d29f12d69559fa97174 (patch) | |
tree | fc912d54ad8938b0918894d1b945be96645bb4bd /drivers/gpu/drm/i915/display/intel_dp_mst.c | |
parent | 8466a14173e5ff7c2a52d8700a13f4b841d0e17c (diff) | |
download | linux-ce9b1466f5a9a1b2acc80d29f12d69559fa97174.tar.gz linux-ce9b1466f5a9a1b2acc80d29f12d69559fa97174.tar.bz2 linux-ce9b1466f5a9a1b2acc80d29f12d69559fa97174.zip |
drm/i915: Replace to_bpp_int_roundup() with fxp_q4_to_int_roundup()
Replace the to_bpp_int_roundup() helper defined by the driver with the
equivalent fxp_q4_to_int_roundup() helper defined by DRM core.
v2: Rebase on s/drm_x16/fxp_q4 change.
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240805150802.3568970-4-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c index a4fbcae3139f..8c5f783abdc2 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c @@ -379,7 +379,7 @@ static int intel_dp_dsc_mst_compute_link_config(struct intel_encoder *encoder, min_compressed_bpp = intel_dp_dsc_sink_min_compressed_bpp(crtc_state); min_compressed_bpp = max(min_compressed_bpp, - to_bpp_int_roundup(limits->link.min_bpp_x16)); + fxp_q4_to_int_roundup(limits->link.min_bpp_x16)); drm_dbg_kms(&i915->drm, "DSC Sink supported compressed min bpp %d compressed max bpp %d\n", min_compressed_bpp, max_compressed_bpp); |