diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-14 15:43:08 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-22 18:48:41 -0700 |
commit | 54dcbfeb2b29bc2aea3916f38554d4e9b7141889 (patch) | |
tree | e8ae2294f5b7448d0839c05dddb5e22dd5e304f5 /src/savage_i2c.c | |
parent | d65e042084e2300c549ab28c22b372494730174d (diff) |
drop support for ancient xserver versions
We're relying on at least 1.18 now.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/10>
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; } - - - |