summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_panel.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2021-08-18 13:11:08 +0300
committerJani Nikula <jani.nikula@intel.com>2021-08-20 10:28:56 +0300
commit3c6a4a02c92af14a0325ede88bdbccc0ccd19241 (patch)
treef44070a10c83aaa5d383d3d073fbfdb46a81f2f2 /drivers/gpu/drm/i915/display/intel_panel.c
parent8e6b13a7b298edec16fb05aca0200ad400c9d1ea (diff)
downloadlinux-3c6a4a02c92af14a0325ede88bdbccc0ccd19241.tar.gz
linux-3c6a4a02c92af14a0325ede88bdbccc0ccd19241.tar.bz2
linux-3c6a4a02c92af14a0325ede88bdbccc0ccd19241.zip
drm/i915/panel: move intel_panel_use_ssc() out of headers
There's no performance reason to have it as static inline; move it out of intel_display_types.h to reduce clutter and dependency on i915_drv.h. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/6f2c05005e4fa43a5572b02b3f41363725ffdb4f.1629281426.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_panel.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_panel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_panel.c b/drivers/gpu/drm/i915/display/intel_panel.c
index 7d7a60b4d2de..074a55f20bcd 100644
--- a/drivers/gpu/drm/i915/display/intel_panel.c
+++ b/drivers/gpu/drm/i915/display/intel_panel.c
@@ -41,6 +41,14 @@
#include "intel_dsi_dcs_backlight.h"
#include "intel_panel.h"
+bool intel_panel_use_ssc(struct drm_i915_private *i915)
+{
+ if (i915->params.panel_use_ssc >= 0)
+ return i915->params.panel_use_ssc != 0;
+ return i915->vbt.lvds_use_ssc
+ && !(i915->quirks & QUIRK_LVDS_SSC_DISABLE);
+}
+
void
intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode,
struct drm_display_mode *adjusted_mode)