xfree86: i2c: drop unused xf86I2CWriteWord()
Not used anywhere, so no need to keep around it any longer. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
0779c670b6
commit
f353a4387a
|
@ -485,22 +485,6 @@ xf86I2CWriteByte(I2CDevPtr d, I2CByte subaddr, I2CByte byte)
|
||||||
return xf86I2CWriteRead(d, wb, 2, NULL, 0);
|
return xf86I2CWriteRead(d, wb, 2, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write a word (high byte, then low byte) to one of the registers
|
|
||||||
* determined by its sub-address.
|
|
||||||
*/
|
|
||||||
|
|
||||||
Bool
|
|
||||||
xf86I2CWriteWord(I2CDevPtr d, I2CByte subaddr, unsigned short word)
|
|
||||||
{
|
|
||||||
I2CByte wb[3];
|
|
||||||
|
|
||||||
wb[0] = subaddr;
|
|
||||||
wb[1] = word >> 8;
|
|
||||||
wb[2] = word & 0xFF;
|
|
||||||
|
|
||||||
return xf86I2CWriteRead(d, wb, 3, NULL, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Write a vector of bytes to not adjacent registers. This vector is,
|
/* Write a vector of bytes to not adjacent registers. This vector is,
|
||||||
* 1st byte sub-address, 2nd byte value, 3rd byte sub-address asf.
|
* 1st byte sub-address, 2nd byte value, 3rd byte sub-address asf.
|
||||||
* This function is intended to initialize devices. Note this function
|
* This function is intended to initialize devices. Note this function
|
||||||
|
|
|
@ -105,8 +105,6 @@ extern _X_EXPORT Bool xf86I2CReadBytes(I2CDevPtr d, I2CByte subaddr,
|
||||||
#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);
|
||||||
extern _X_EXPORT Bool xf86I2CWriteWord(I2CDevPtr d, I2CByte subaddr,
|
|
||||||
unsigned short word);
|
|
||||||
extern _X_EXPORT Bool xf86I2CWriteVec(I2CDevPtr d, I2CByte * vec, int nValues);
|
extern _X_EXPORT Bool xf86I2CWriteVec(I2CDevPtr d, I2CByte * vec, int nValues);
|
||||||
|
|
||||||
#endif /*_XF86I2C_H */
|
#endif /*_XF86I2C_H */
|
||||||
|
|
Loading…
Reference in New Issue