mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
i2c-stub: Implement I2C block support
This is required to test some drivers, for example at24. Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
69b0089a67
commit
4710317891
2 changed files with 29 additions and 5 deletions
|
|
@ -2,9 +2,9 @@ MODULE: i2c-stub
|
|||
|
||||
DESCRIPTION:
|
||||
|
||||
This module is a very simple fake I2C/SMBus driver. It implements four
|
||||
types of SMBus commands: write quick, (r/w) byte, (r/w) byte data, and
|
||||
(r/w) word data.
|
||||
This module is a very simple fake I2C/SMBus driver. It implements five
|
||||
types of SMBus commands: write quick, (r/w) byte, (r/w) byte data, (r/w)
|
||||
word data, and (r/w) I2C block data.
|
||||
|
||||
You need to provide chip addresses as a module parameter when loading this
|
||||
driver, which will then only react to SMBus commands to these addresses.
|
||||
|
|
|
|||
Loading…
Reference in a new issue