[openchrome-devel] xf86-video-openchrome: src/via_vt1632.c src/via_vt1632.h
Kevin Brace
kevinbrace at kemper.freedesktop.org
Tue Jul 2 01:17:27 UTC 2019
src/via_vt1632.c | 4 ++--
src/via_vt1632.h | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 5199d57872360ed41cc331ff735de84ce4b29951
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Mon Jul 1 20:09:54 2019 -0500
Define VIA_VT1632_I2C_ADDR label for VT1632(A) I2C bus address
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_vt1632.c b/src/via_vt1632.c
index fedc920..f18b546 100644
--- a/src/via_vt1632.c
+++ b/src/via_vt1632.c
@@ -443,7 +443,7 @@ Bool
viaVT1632Probe(ScrnInfoPtr pScrn, I2CBusPtr pI2CBus)
{
I2CDevPtr pI2CDevice = NULL;
- I2CSlaveAddr i2cAddr = 0x10;
+ I2CSlaveAddr i2cAddr = VIA_VT1632_I2C_ADDR;
CARD8 i2cData;
CARD16 vendorID, deviceID;
Bool status = FALSE;
@@ -522,7 +522,7 @@ viaVT1632Init(ScrnInfoPtr pScrn)
viaVT1632RecPtr pVIAVT1632;
I2CBusPtr pI2CBus;
I2CDevPtr pI2CDevice;
- I2CSlaveAddr i2cAddr = 0x10;
+ I2CSlaveAddr i2cAddr = VIA_VT1632_I2C_ADDR;
CARD8 i2cData;
char outputNameBuffer[32];
diff --git a/src/via_vt1632.h b/src/via_vt1632.h
index 3b9a02f..4f93f6c 100644
--- a/src/via_vt1632.h
+++ b/src/via_vt1632.h
@@ -25,6 +25,8 @@
#ifndef _VIA_VT1632_H_
#define _VIA_VT1632_H_ 1
+#define VIA_VT1632_I2C_ADDR 0x10
+
#define VIA_VT1632_VEN 0x20
#define VIA_VT1632_HEN 0x10
#define VIA_VT1632_DSEL 0x08
More information about the openchrome-devel
mailing list