]> err.no Git - linux-2.6/commit
i2c-stub: Chip address as a module parameter
authorJean Delvare <khali@linux-fr.org>
Sun, 13 Aug 2006 21:46:44 +0000 (23:46 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:51 +0000 (15:38 -0700)
commit7a8d29cec7a53cf1a29dc5055aa9d1fa0f95830f
treed7be7f4fe5909b34fb4ca1587bc6a981c7c0b67b
parent6c805d2ce9d910ea915d7dbe4aed0a91f138be07
i2c-stub: Chip address as a module parameter

i2c-stub: Chip address as a module parameter

Add a mandatory chip_addr parameter to i2c-stub. This parameter
defines to which chip address the driver will respond, instead of
reponding to all addresses as before. The idea is to prevent the
users from loading i2c-stub at random and being then confused by
the results of sensors-detect or other user-space tools.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/i2c/i2c-stub
drivers/i2c/busses/i2c-stub.c