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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-21 17:09:09 +02:00
parent 7a61143169
commit d4515dfa9c
2 changed files with 0 additions and 10 deletions

View File

@ -452,15 +452,6 @@ xf86I2CWriteRead(I2CDevPtr d,
return b->I2CWriteRead(d, WriteBuffer, nWrite, ReadBuffer, nRead); 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. /* Read a byte from one of the registers determined by its sub-address.
*/ */

View File

@ -98,7 +98,6 @@ extern _X_EXPORT Bool xf86I2CWriteRead(I2CDevPtr d, I2CByte * WriteBuffer,
int nRead); int nRead);
#define xf86I2CRead(d, rb, nr) xf86I2CWriteRead(d, NULL, 0, rb, nr) #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, extern _X_EXPORT Bool xf86I2CReadByte(I2CDevPtr d, I2CByte subaddr,
I2CByte * pbyte); I2CByte * pbyte);
extern _X_EXPORT Bool xf86I2CReadBytes(I2CDevPtr d, I2CByte subaddr, extern _X_EXPORT Bool xf86I2CReadBytes(I2CDevPtr d, I2CByte subaddr,