[openchrome-devel] xf86-video-openchrome: 5 commits - src/via_ch7xxx.h src/via_sii164.c src/via_vt162x.h src/via_vt1632.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Sat Jul 13 01:51:17 UTC 2019
src/via_ch7xxx.h | 2 +-
src/via_sii164.c | 6 ------
src/via_vt162x.h | 4 ++--
src/via_vt1632.c | 6 ------
4 files changed, 3 insertions(+), 15 deletions(-)
New commits:
commit 48816074470ecf8b7ffc2dc0f2ef892d9e9fab06
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Jul 12 18:50:46 2019 -0700
Use const char* for name field of VT162XTableRec struct
Significant reduction of compilation warnings.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_vt162x.h b/src/via_vt162x.h
index f226725..9a1e277 100644
--- a/src/via_vt162x.h
+++ b/src/via_vt162x.h
@@ -187,7 +187,7 @@ static DisplayModeRec VT1622Modes[] = {
};
struct VT162XTableRec {
- char * name;
+ const char* name;
CARD16 Width;
CARD16 Height;
int Standard;
commit 3f0e8f0796ddae027be9e1c4acfe9b00372b8645
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Jul 12 18:46:39 2019 -0700
Use const char* for name field of VT1621TableRec struct
Significant reduction of compilation warnings.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_vt162x.h b/src/via_vt162x.h
index f5ae92e..f226725 100644
--- a/src/via_vt162x.h
+++ b/src/via_vt162x.h
@@ -68,7 +68,7 @@ static DisplayModeRec VT1621Modes[] = {
};
struct VT1621TableRec {
- char * name;
+ const char* name;
CARD16 Width;
CARD16 Height;
int Standard;
commit cead8ad84d1c90ba5cf20fc0c693f832c33170f0
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Jul 12 18:34:44 2019 -0700
Use const char* for name field of CH7xxxTableRec struct
Significant reduction of compilation warnings.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_ch7xxx.h b/src/via_ch7xxx.h
index f54ac5e..11da93d 100644
--- a/src/via_ch7xxx.h
+++ b/src/via_ch7xxx.h
@@ -116,7 +116,7 @@ typedef struct _VIATVMASKTABLE {
} VIABIOSTVMASKTableRec, *VIABIOSTVMASKTablePtr;
struct CH7xxxTableRec {
- char* name;
+ const char* name;
CARD16 Width;
CARD16 Height;
int Standard;
commit 6c4203cbf59d24365be75236e72ff93876bfe7ad
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Jul 12 18:24:37 2019 -0700
Remove debug messages from viaSiI164CheckModeValidity()
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_sii164.c b/src/via_sii164.c
index 4565891..701b812 100644
--- a/src/via_sii164.c
+++ b/src/via_sii164.c
@@ -154,13 +154,9 @@ viaSiI164RestoreRegisters(ScrnInfoPtr pScrn, I2CDevPtr pDev,
static int
viaSiI164CheckModeValidity(xf86OutputPtr output, DisplayModePtr pMode)
{
- ScrnInfoPtr pScrn = output->scrn;
viaSiI164RecPtr pSiI164Rec = output->driver_private;
int status = MODE_OK;
- DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Entered viaSiI164CheckModeValidity.\n"));
-
if (pMode->Clock < pSiI164Rec->DotclockMin) {
status = MODE_CLOCK_LOW;
goto exit;
@@ -171,8 +167,6 @@ viaSiI164CheckModeValidity(xf86OutputPtr output, DisplayModePtr pMode)
}
exit:
- DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Exiting viaSiI164CheckModeValidity.\n"));
return status;
}
commit 4d350ae1acf08aa9070cb0d1a94a5f3e21e051a4
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Jul 12 18:14:01 2019 -0700
Remove debug messages from viaVT1632CheckModeValidity()
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_vt1632.c b/src/via_vt1632.c
index 960507b..bc1b810 100644
--- a/src/via_vt1632.c
+++ b/src/via_vt1632.c
@@ -168,13 +168,9 @@ viaVT1632RestoreRegisters(ScrnInfoPtr pScrn, I2CDevPtr pDev,
static int
viaVT1632CheckModeValidity(xf86OutputPtr output, DisplayModePtr pMode)
{
- ScrnInfoPtr pScrn = output->scrn;
viaVT1632RecPtr pVIAVT1632 = output->driver_private;
int status = MODE_OK;
- DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Entered viaVT1632CheckModeValidity.\n"));
-
if (pMode->Clock < pVIAVT1632->DotclockMin) {
status = MODE_CLOCK_LOW;
goto exit;
@@ -185,8 +181,6 @@ viaVT1632CheckModeValidity(xf86OutputPtr output, DisplayModePtr pMode)
}
exit:
- DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Exiting viaVT1632CheckModeValidity.\n"));
return status;
}
More information about the openchrome-devel
mailing list