mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: Mark M. Hoffman <[email protected]>
This commit is contained in:
parent
b3af547e19
commit
569be443e3
2 changed files with 8 additions and 10 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue