mirror of https://gitee.com/openkylin/linux.git
drm/i915: Remove intel_panel_detect()
With neither LVDS or eDP no longer using intel_panel_detect() we can kill it, and the accompanying modparam. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180717174216.22252-3-ville.syrjala@linux.intel.com Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
b93b41afce
commit
d81be4f379
|
@ -44,10 +44,6 @@ i915_param_named(modeset, int, 0400,
|
||||||
"Use kernel modesetting [KMS] (0=disable, "
|
"Use kernel modesetting [KMS] (0=disable, "
|
||||||
"1=on, -1=force vga console preference [default])");
|
"1=on, -1=force vga console preference [default])");
|
||||||
|
|
||||||
i915_param_named_unsafe(panel_ignore_lid, int, 0600,
|
|
||||||
"Override lid status (0=autodetect, 1=autodetect disabled [default], "
|
|
||||||
"-1=force lid closed, -2=force lid open)");
|
|
||||||
|
|
||||||
i915_param_named_unsafe(enable_dc, int, 0400,
|
i915_param_named_unsafe(enable_dc, int, 0400,
|
||||||
"Enable power-saving display C-states. "
|
"Enable power-saving display C-states. "
|
||||||
"(-1=auto [default]; 0=disable; 1=up to DC5; 2=up to DC6)");
|
"(-1=auto [default]; 0=disable; 1=up to DC5; 2=up to DC6)");
|
||||||
|
|
|
@ -36,7 +36,6 @@ struct drm_printer;
|
||||||
#define I915_PARAMS_FOR_EACH(param) \
|
#define I915_PARAMS_FOR_EACH(param) \
|
||||||
param(char *, vbt_firmware, NULL) \
|
param(char *, vbt_firmware, NULL) \
|
||||||
param(int, modeset, -1) \
|
param(int, modeset, -1) \
|
||||||
param(int, panel_ignore_lid, 1) \
|
|
||||||
param(int, lvds_channel_mode, 0) \
|
param(int, lvds_channel_mode, 0) \
|
||||||
param(int, panel_use_ssc, -1) \
|
param(int, panel_use_ssc, -1) \
|
||||||
param(int, vbt_sdvo_panel_type, -1) \
|
param(int, vbt_sdvo_panel_type, -1) \
|
||||||
|
|
|
@ -1889,7 +1889,6 @@ void intel_panel_enable_backlight(const struct intel_crtc_state *crtc_state,
|
||||||
const struct drm_connector_state *conn_state);
|
const struct drm_connector_state *conn_state);
|
||||||
void intel_panel_disable_backlight(const struct drm_connector_state *old_conn_state);
|
void intel_panel_disable_backlight(const struct drm_connector_state *old_conn_state);
|
||||||
void intel_panel_destroy_backlight(struct drm_connector *connector);
|
void intel_panel_destroy_backlight(struct drm_connector *connector);
|
||||||
enum drm_connector_status intel_panel_detect(struct drm_i915_private *dev_priv);
|
|
||||||
extern struct drm_display_mode *intel_find_panel_downclock(
|
extern struct drm_display_mode *intel_find_panel_downclock(
|
||||||
struct drm_i915_private *dev_priv,
|
struct drm_i915_private *dev_priv,
|
||||||
struct drm_display_mode *fixed_mode,
|
struct drm_display_mode *fixed_mode,
|
||||||
|
|
|
@ -375,26 +375,6 @@ void intel_gmch_panel_fitting(struct intel_crtc *intel_crtc,
|
||||||
pipe_config->gmch_pfit.lvds_border_bits = border;
|
pipe_config->gmch_pfit.lvds_border_bits = border;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum drm_connector_status
|
|
||||||
intel_panel_detect(struct drm_i915_private *dev_priv)
|
|
||||||
{
|
|
||||||
/* Assume that the BIOS does not lie through the OpRegion... */
|
|
||||||
if (!i915_modparams.panel_ignore_lid && dev_priv->opregion.lid_state) {
|
|
||||||
return *dev_priv->opregion.lid_state & 0x1 ?
|
|
||||||
connector_status_connected :
|
|
||||||
connector_status_disconnected;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (i915_modparams.panel_ignore_lid) {
|
|
||||||
case -2:
|
|
||||||
return connector_status_connected;
|
|
||||||
case -1:
|
|
||||||
return connector_status_disconnected;
|
|
||||||
default:
|
|
||||||
return connector_status_unknown;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* scale - scale values from one range to another
|
* scale - scale values from one range to another
|
||||||
* @source_val: value in range [@source_min..@source_max]
|
* @source_val: value in range [@source_min..@source_max]
|
||||||
|
|
Loading…
Reference in New Issue