diff options
Diffstat (limited to 'src/savage_i2c.c')
-rw-r--r-- | src/savage_i2c.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/savage_i2c.c b/src/savage_i2c.c index a37fc7f..d8def10 100644 --- a/src/savage_i2c.c +++ b/src/savage_i2c.c @@ -37,11 +37,7 @@ in this Software without prior written authorization from the XFree86 Project. static void SavageI2CPutBits(I2CBusPtr b, int clock, int data) { -#ifdef XF86_SCRN_INTERFACE ScrnInfoPtr pScrn = b->pScrn; -#else - ScrnInfoPtr pScrn = (ScrnInfoPtr)(xf86Screens[b->scrnIndex]); -#endif SavagePtr psav = SAVPTR(pScrn); unsigned char reg = 0x10; @@ -55,11 +51,7 @@ SavageI2CPutBits(I2CBusPtr b, int clock, int data) static void SavageI2CGetBits(I2CBusPtr b, int *clock, int *data) { -#ifdef XF86_SCRN_INTERFACE ScrnInfoPtr pScrn = b->pScrn; -#else - ScrnInfoPtr pScrn = (ScrnInfoPtr)(xf86Screens[b->scrnIndex]); -#endif SavagePtr psav = SAVPTR(pScrn); unsigned char reg = 0x10; @@ -84,9 +76,7 @@ SavageI2CInit(ScrnInfoPtr pScrn) I2CPtr->BusName = "I2C bus"; I2CPtr->scrnIndex = pScrn->scrnIndex; -#ifdef XF86_SCRN_INTERFACE I2CPtr->pScrn = pScrn; -#endif I2CPtr->I2CPutBits = SavageI2CPutBits; I2CPtr->I2CGetBits = SavageI2CGetBits; @@ -95,6 +85,3 @@ SavageI2CInit(ScrnInfoPtr pScrn) return TRUE; } - - - |