summaryrefslogtreecommitdiff
path: root/src/intel_display.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-09-07 13:53:47 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-09-07 13:53:47 -0700
commitf56c839f30ec39ea22bbf6a7fda4cefd7cbfbfc2 (patch)
tree39f748db5c624deb4932e6eef49be1a71712a5e3 /src/intel_display.c
parent0d26d950fdada1f59dc6cb31fe2f03004825f773 (diff)
KMS: rename LVDS fields to reflect actual usage
These are used for panels, not just LVDS connections, so name them as such. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'src/intel_display.c')
-rw-r--r--src/intel_display.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/intel_display.c b/src/intel_display.c
index 20c51649..e1898313 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -86,9 +86,9 @@ struct intel_output {
struct intel_property *props;
void *private_data;
- Bool has_lvds_limits;
- int lvds_hdisplay;
- int lvds_vdisplay;
+ Bool has_panel_limits;
+ int panel_hdisplay;
+ int panel_vdisplay;
int dpms_mode;
const char *backlight_iface;
@@ -689,12 +689,12 @@ intel_output_mode_valid(xf86OutputPtr output, DisplayModePtr pModes)
struct intel_output *intel_output = output->driver_private;
/*
- * If the connector type is LVDS, we will use the panel limit to
+ * If the connector type is a panel, we will use the panel limit to
* verfiy whether the mode is valid.
*/
- if (intel_output->has_lvds_limits) {
- if (pModes->HDisplay > intel_output->lvds_hdisplay ||
- pModes->VDisplay > intel_output->lvds_vdisplay)
+ if (intel_output->has_panel_limits) {
+ if (pModes->HDisplay > intel_output->panel_hdisplay ||
+ pModes->VDisplay > intel_output->panel_vdisplay)
return MODE_PANEL;
}
@@ -747,7 +747,7 @@ intel_output_attach_edid(xf86OutputPtr output)
}
static DisplayModePtr
-intel_output_lvds_edid(xf86OutputPtr output, DisplayModePtr modes)
+intel_output_panel_edid(xf86OutputPtr output, DisplayModePtr modes)
{
xf86MonPtr mon = output->MonInfo;
@@ -814,29 +814,29 @@ intel_output_get_modes(xf86OutputPtr output)
}
/*
- * If the connector type is LVDS, we will traverse the kernel mode to
+ * If the connector type is a panel, we will traverse the kernel mode to
* get the panel limit. And then add all the standard modes to fake
* the fullscreen experience.
* If it is incorrect, please fix me.
*/
- intel_output->has_lvds_limits = FALSE;
+ intel_output->has_panel_limits = FALSE;
if (koutput->connector_type == DRM_MODE_CONNECTOR_LVDS ||
koutput->connector_type == DRM_MODE_CONNECTOR_eDP) {
for (i = 0; i < koutput->count_modes; i++) {
drmModeModeInfo *mode_ptr;
mode_ptr = &koutput->modes[i];
- if (mode_ptr->hdisplay > intel_output->lvds_hdisplay)
- intel_output->lvds_hdisplay = mode_ptr->hdisplay;
- if (mode_ptr->vdisplay > intel_output->lvds_vdisplay)
- intel_output->lvds_vdisplay = mode_ptr->vdisplay;
+ if (mode_ptr->hdisplay > intel_output->panel_hdisplay)
+ intel_output->panel_hdisplay = mode_ptr->hdisplay;
+ if (mode_ptr->vdisplay > intel_output->panel_vdisplay)
+ intel_output->panel_vdisplay = mode_ptr->vdisplay;
}
- intel_output->has_lvds_limits =
- intel_output->lvds_hdisplay &&
- intel_output->lvds_vdisplay;
+ intel_output->has_panel_limits =
+ intel_output->panel_hdisplay &&
+ intel_output->panel_vdisplay;
- Modes = intel_output_lvds_edid(output, Modes);
+ Modes = intel_output_panel_edid(output, Modes);
}
return Modes;