xfree86: i2c: drop unused xf86I2CReadWord()
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:
parent
d4515dfa9c
commit
d9a1dfb7ba
|
@ -471,23 +471,6 @@ xf86I2CReadBytes(I2CDevPtr d, I2CByte subaddr, I2CByte * pbyte, int n)
|
||||||
return xf86I2CWriteRead(d, &subaddr, 1, pbyte, n);
|
return xf86I2CWriteRead(d, &subaddr, 1, pbyte, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read a word (high byte, then low byte) from one of the registers
|
|
||||||
* determined by its sub-address.
|
|
||||||
*/
|
|
||||||
|
|
||||||
Bool
|
|
||||||
xf86I2CReadWord(I2CDevPtr d, I2CByte subaddr, unsigned short *pword)
|
|
||||||
{
|
|
||||||
I2CByte rb[2];
|
|
||||||
|
|
||||||
if (!xf86I2CWriteRead(d, &subaddr, 1, rb, 2))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
*pword = (rb[0] << 8) | rb[1];
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Write a byte to one of the registers determined by its sub-address.
|
/* Write a byte to one of the registers determined by its sub-address.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -102,8 +102,6 @@ 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,
|
||||||
I2CByte * pbyte, int n);
|
I2CByte * pbyte, int n);
|
||||||
extern _X_EXPORT Bool xf86I2CReadWord(I2CDevPtr d, I2CByte subaddr,
|
|
||||||
unsigned short *pword);
|
|
||||||
#define xf86I2CWrite(d, wb, nw) xf86I2CWriteRead(d, wb, nw, NULL, 0)
|
#define xf86I2CWrite(d, wb, nw) xf86I2CWriteRead(d, wb, nw, NULL, 0)
|
||||||
extern _X_EXPORT Bool xf86I2CWriteByte(I2CDevPtr d, I2CByte subaddr,
|
extern _X_EXPORT Bool xf86I2CWriteByte(I2CDevPtr d, I2CByte subaddr,
|
||||||
I2CByte byte);
|
I2CByte byte);
|
||||||
|
|
Loading…
Reference in New Issue