mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 06:17:26 -04:00
drm/i915/dp: Replace intel_dp_is_uhbr_rate() with drm_dp_is_uhbr_rate()
Replace intel_dp_is_uhbr_rate() with the recently added drm_dp_is_uhbr_rate(). Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231116131841.1588781-5-imre.deak@intel.com
This commit is contained in:
@@ -2393,7 +2393,7 @@ add_bw_alloc_overhead(int link_clock, int bw_overhead,
|
||||
int pixel_data_rate, int link_data_rate,
|
||||
u32 *data_m, u32 *data_n)
|
||||
{
|
||||
bool is_uhbr = intel_dp_is_uhbr_rate(link_clock);
|
||||
bool is_uhbr = drm_dp_is_uhbr_rate(link_clock);
|
||||
int ch_coding_efficiency =
|
||||
drm_dp_bw_channel_coding_efficiency(is_uhbr);
|
||||
|
||||
|
||||
@@ -121,15 +121,10 @@ bool intel_dp_is_edp(struct intel_dp *intel_dp)
|
||||
|
||||
static void intel_dp_unset_edid(struct intel_dp *intel_dp);
|
||||
|
||||
bool intel_dp_is_uhbr_rate(int rate)
|
||||
{
|
||||
return rate >= 1000000;
|
||||
}
|
||||
|
||||
/* Is link rate UHBR and thus 128b/132b? */
|
||||
bool intel_dp_is_uhbr(const struct intel_crtc_state *crtc_state)
|
||||
{
|
||||
return intel_dp_is_uhbr_rate(crtc_state->port_clock);
|
||||
return drm_dp_is_uhbr_rate(crtc_state->port_clock);
|
||||
}
|
||||
|
||||
static void intel_dp_set_default_sink_rates(struct intel_dp *intel_dp)
|
||||
|
||||
@@ -80,7 +80,6 @@ void intel_dp_audio_compute_config(struct intel_encoder *encoder,
|
||||
struct drm_connector_state *conn_state);
|
||||
bool intel_dp_has_hdmi_sink(struct intel_dp *intel_dp);
|
||||
bool intel_dp_is_edp(struct intel_dp *intel_dp);
|
||||
bool intel_dp_is_uhbr_rate(int rate);
|
||||
bool intel_dp_is_uhbr(const struct intel_crtc_state *crtc_state);
|
||||
bool intel_dp_is_port_edp(struct drm_i915_private *dev_priv, enum port port);
|
||||
enum irqreturn intel_dp_hpd_pulse(struct intel_digital_port *dig_port,
|
||||
|
||||
Reference in New Issue
Block a user