From d4515dfa9c4369954d6d36fc06c49ba373d176d2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 21 May 2025 17:09:09 +0200 Subject: [PATCH] xfree86: i2c: drop unused xf86I2CReadStatus() Not used anywhere, so no need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/i2c/xf86i2c.c | 9 --------- hw/xfree86/i2c/xf86i2c.h | 1 - 2 files changed, 10 deletions(-) diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index 93d578aae..24bbe03da 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -452,15 +452,6 @@ xf86I2CWriteRead(I2CDevPtr d, return b->I2CWriteRead(d, WriteBuffer, nWrite, ReadBuffer, nRead); } -/* Read a byte, the only readable register of a device. - */ - -Bool -xf86I2CReadStatus(I2CDevPtr d, I2CByte * pbyte) -{ - return xf86I2CWriteRead(d, NULL, 0, pbyte, 1); -} - /* Read a byte from one of the registers determined by its sub-address. */ diff --git a/hw/xfree86/i2c/xf86i2c.h b/hw/xfree86/i2c/xf86i2c.h index 7b0ccdf70..ca49f1e1a 100644 --- a/hw/xfree86/i2c/xf86i2c.h +++ b/hw/xfree86/i2c/xf86i2c.h @@ -98,7 +98,6 @@ extern _X_EXPORT Bool xf86I2CWriteRead(I2CDevPtr d, I2CByte * WriteBuffer, int nRead); #define xf86I2CRead(d, rb, nr) xf86I2CWriteRead(d, NULL, 0, rb, nr) -extern _X_EXPORT Bool xf86I2CReadStatus(I2CDevPtr d, I2CByte * pbyte); extern _X_EXPORT Bool xf86I2CReadByte(I2CDevPtr d, I2CByte subaddr, I2CByte * pbyte); extern _X_EXPORT Bool xf86I2CReadBytes(I2CDevPtr d, I2CByte subaddr,