mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
i2c-stub: Allow user to disable some commands
Add a module parameter to override the functionality bitfield. This lets the user disable some commands. This can be used to force a chip driver to take different code paths. Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
4710317891
commit
38f41f282f
2 changed files with 12 additions and 2 deletions
|
|
@ -33,6 +33,12 @@ PARAMETERS:
|
|||
int chip_addr[10]:
|
||||
The SMBus addresses to emulate chips at.
|
||||
|
||||
unsigned long functionality:
|
||||
Functionality override, to disable some commands. See I2C_FUNC_*
|
||||
constants in <linux/i2c.h> for the suitable values. For example,
|
||||
value 0x1f0000 would only enable the quick, byte and byte data
|
||||
commands.
|
||||
|
||||
CAVEATS:
|
||||
|
||||
If your target driver polls some byte or word waiting for it to change, the
|
||||
|
|
|
|||
Loading…
Reference in a new issue