Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux...
[safe/jmp/linux-2.6] / Documentation / i2c / i2c-stub
index d9c383b..fa4b669 100644 (file)
@@ -21,8 +21,8 @@ EEPROMs, among others.
 
 The typical use-case is like this:
        1. load this module
-       2. use i2cset (from lm_sensors project) to pre-load some data
-       3. load the target sensors chip driver module
+       2. use i2cset (from the i2c-tools project) to pre-load some data
+       3. load the target chip driver module
        4. observe its behavior in the kernel log
 
 There's a script named i2c-stub-from-dump in the i2c-tools package which
@@ -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