Page MenuHomeFreeBSD

D62164.1795989459.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62164.1795989459.diff

diff --git a/sys/dev/hid/ietp.c b/sys/dev/hid/ietp.c
--- a/sys/dev/hid/ietp.c
+++ b/sys/dev/hid/ietp.c
@@ -463,7 +463,7 @@
if (device_get_devclass(iichid) != devclass_find("iichid"))
return;
- addr = iicbus_get_addr(iichid) << 1;
+ addr = iicbus_get_addr(iichid);
msgs[0] = (struct iic_msg){ addr, IIC_M_WR | IIC_M_NOSTOP, sizeof(cmd), cmd };
msgs[1] = (struct iic_msg){ addr, IIC_M_RD, sizeof(resp), resp };
@@ -656,7 +656,7 @@
ietp_iic_read_reg(device_t dev, uint16_t reg, size_t len, void *val)
{
device_t iichid = device_get_parent(device_get_parent(dev));
- uint16_t addr = iicbus_get_addr(iichid) << 1;
+ uint16_t addr = iicbus_get_addr(iichid);
uint8_t cmd[2] = { reg & 0xff, (reg >> 8) & 0xff };
struct iic_msg msgs[2] = {
{ addr, IIC_M_WR | IIC_M_NOSTOP, sizeof(cmd), cmd },
@@ -680,7 +680,7 @@
ietp_iic_write_reg(device_t dev, uint16_t reg, uint16_t val)
{
device_t iichid = device_get_parent(device_get_parent(dev));
- uint16_t addr = iicbus_get_addr(iichid) << 1;
+ uint16_t addr = iicbus_get_addr(iichid);
uint8_t cmd[4] = { reg & 0xff, (reg >> 8) & 0xff,
val & 0xff, (val >> 8) & 0xff };
struct iic_msg msgs[1] = {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 29, 9:57 PM (22 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42087813
Default Alt Text
D62164.1795989459.diff (1 KB)

Event Timeline