summaryrefslogtreecommitdiff
path: root/src/ch7017
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-03-30 17:07:29 -0700
committerEric Anholt <eric@anholt.net>2007-03-30 17:19:35 -0700
commitfd98e88d1a6e0e8d35bda868e7afcb78d2d11524 (patch)
tree94c288a26b15bf08bd7d7a074b4b529a2ca5dc42 /src/ch7017
parent274b99e5e750228eba9a67773725a40ebaa9bf56 (diff)
Finish off some function renaming that was missed before.
Thanks to alanc for catching this.
Diffstat (limited to 'src/ch7017')
-rw-r--r--src/ch7017/ch7017.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ch7017/ch7017.c b/src/ch7017/ch7017.c
index 019dcea0..7070c7d3 100644
--- a/src/ch7017/ch7017.c
+++ b/src/ch7017/ch7017.c
@@ -59,6 +59,8 @@ struct ch7017_priv {
static void
ch7017_dump_regs(I2CDevPtr d);
+static void
+ch7017_dpms(I2CDevPtr d, int mode);
static Bool
ch7017_read(struct ch7017_priv *priv, int addr, CARD8 *val)
@@ -193,7 +195,7 @@ ch7017_mode_set(I2CDevPtr d, DisplayModePtr mode)
lvds_power_down = (mode->HDisplay & 0x0f00) >> 8;
- ch7017Power(d, FALSE);
+ ch7017_dpms(d, DPMSModeOff);
ch7017_write(priv, CH7017_HORIZONTAL_ACTIVE_PIXEL_INPUT,
horizontal_active_pixel_input);
ch7017_write(priv, CH7017_HORIZONTAL_ACTIVE_PIXEL_OUTPUT,
@@ -210,7 +212,7 @@ ch7017_mode_set(I2CDevPtr d, DisplayModePtr mode)
xf86DrvMsg(priv->d.pI2CBus->scrnIndex, X_INFO,
"Registers after mode setting\n");
- ch7017PrintRegs(d);
+ ch7017_dump_regs(d);
}
/* set the CH7017 power state */
@@ -279,7 +281,7 @@ ch7017_restore(I2CDevPtr d)
struct ch7017_priv *priv = d->DriverPrivate.ptr;
/* Power down before changing mode */
- ch7017Power(d, FALSE);
+ ch7017_dpms(d, DPMSModeOff);
ch7017_write(priv, CH7017_HORIZONTAL_ACTIVE_PIXEL_INPUT, priv->save_hapi);
ch7017_write(priv, CH7017_VERTICAL_ACTIVE_LINE_OUTPUT, priv->save_valo);