i2c-stub: Use a single array for byte and word operations
This mimics the behavior of actual SMBus chips better. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Mark M. Hoffman <mhoffman@lightlink.com>
This commit is contained in:
committed by
Jean Delvare
parent
b3af547e19
commit
569be443e3
@@ -35,9 +35,6 @@ int chip_addr[10]:
|
||||
|
||||
CAVEATS:
|
||||
|
||||
There are independent arrays for byte/data and word/data commands. Depending
|
||||
on if/how a target driver mixes them, you'll need to be careful.
|
||||
|
||||
If your target driver polls some byte or word waiting for it to change, the
|
||||
stub could lock it up. Use i2cset to unlock it.
|
||||
|
||||
|
Reference in New Issue
Block a user