Commit 90248800 authored by Imre Deak's avatar Imre Deak

drm/i915/lspcon: Remove unused force change mode parameter

All callers asked for a forced change but the function ignored this
parameter. It doesn't seem to be necessary to force the change in any
case so let's just remove the parameter.

Cc: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarShashank Sharma <shashank.sharma@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479755707-29596-5-git-send-email-imre.deak@intel.com
parent 357c0ae9
...@@ -87,7 +87,7 @@ static enum drm_lspcon_mode lspcon_wait_mode(struct intel_lspcon *lspcon, ...@@ -87,7 +87,7 @@ static enum drm_lspcon_mode lspcon_wait_mode(struct intel_lspcon *lspcon,
} }
static int lspcon_change_mode(struct intel_lspcon *lspcon, static int lspcon_change_mode(struct intel_lspcon *lspcon,
enum drm_lspcon_mode mode, bool force) enum drm_lspcon_mode mode)
{ {
int err; int err;
enum drm_lspcon_mode current_mode; enum drm_lspcon_mode current_mode;
...@@ -202,7 +202,7 @@ void lspcon_resume(struct intel_lspcon *lspcon) ...@@ -202,7 +202,7 @@ void lspcon_resume(struct intel_lspcon *lspcon)
if (lspcon_wait_mode(lspcon, expected_mode) == DRM_LSPCON_MODE_PCON) if (lspcon_wait_mode(lspcon, expected_mode) == DRM_LSPCON_MODE_PCON)
return; return;
if (lspcon_change_mode(lspcon, DRM_LSPCON_MODE_PCON, true)) if (lspcon_change_mode(lspcon, DRM_LSPCON_MODE_PCON))
DRM_ERROR("LSPCON resume failed\n"); DRM_ERROR("LSPCON resume failed\n");
else else
DRM_DEBUG_KMS("LSPCON resume success\n"); DRM_DEBUG_KMS("LSPCON resume success\n");
...@@ -239,8 +239,7 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port) ...@@ -239,8 +239,7 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)
* 2.0 sinks. * 2.0 sinks.
*/ */
if (lspcon->active && lspcon->mode != DRM_LSPCON_MODE_PCON) { if (lspcon->active && lspcon->mode != DRM_LSPCON_MODE_PCON) {
if (lspcon_change_mode(lspcon, DRM_LSPCON_MODE_PCON, if (lspcon_change_mode(lspcon, DRM_LSPCON_MODE_PCON) < 0) {
true) < 0) {
DRM_ERROR("LSPCON mode change to PCON failed\n"); DRM_ERROR("LSPCON mode change to PCON failed\n");
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment