summaryrefslogtreecommitdiff
path: root/linux-core/dvo_ch7017.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-07-06 11:08:49 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-07-06 11:08:49 +0200
commit6738e7b00bf05529303ed690873495db6d83337c (patch)
treec29353f4c78fb75de913683add74ee6580be2972 /linux-core/dvo_ch7017.c
parente810cb9243fe6c4905182869d9e3272d861a14cb (diff)
modesetting-101: Rename DPMS modes to avoid compatibility issues with xorg definitions.
Diffstat (limited to 'linux-core/dvo_ch7017.c')
-rw-r--r--linux-core/dvo_ch7017.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/dvo_ch7017.c b/linux-core/dvo_ch7017.c
index 194a7af1..b10e0388 100644
--- a/linux-core/dvo_ch7017.c
+++ b/linux-core/dvo_ch7017.c
@@ -327,7 +327,7 @@ static void ch7017_mode_set(struct intel_dvo_device *dvo,
lvds_power_down = CH7017_LVDS_POWER_DOWN_DEFAULT_RESERVED |
(mode->hdisplay & 0x0700) >> 8;
- ch7017_dpms(dvo, DPMSModeOff);
+ ch7017_dpms(dvo, DRM_MODE_DPMS_OFF);
ch7017_write(dvo, CH7017_HORIZONTAL_ACTIVE_PIXEL_INPUT,
horizontal_active_pixel_input);
ch7017_write(dvo, CH7017_HORIZONTAL_ACTIVE_PIXEL_OUTPUT,
@@ -363,7 +363,7 @@ static void ch7017_dpms(struct intel_dvo_device *dvo, int mode)
CH7017_DAC3_POWER_DOWN |
CH7017_TV_POWER_DOWN_EN);
- if (mode == DPMSModeOn) {
+ if (mode == DRM_MODE_DPMS_ON) {
/* Turn on the LVDS */
ch7017_write(dvo, CH7017_LVDS_POWER_DOWN,
val & ~CH7017_LVDS_POWER_DOWN_EN);
@@ -418,7 +418,7 @@ static void ch7017_restore(struct intel_dvo_device *dvo)
struct ch7017_priv *priv = dvo->dev_priv;
/* Power down before changing mode */
- ch7017_dpms(dvo, DPMSModeOff);
+ ch7017_dpms(dvo, DRM_MODE_DPMS_OFF);
ch7017_write(dvo, CH7017_HORIZONTAL_ACTIVE_PIXEL_INPUT, priv->save_hapi);
ch7017_write(dvo, CH7017_VERTICAL_ACTIVE_LINE_OUTPUT, priv->save_valo);