i2c-stub: Support multiple chips
commit9d90c1fd9bdbffb456d1b1ef05215343503fd0b0
authorJean Delvare <khali@linux-fr.org>
Sat, 13 Oct 2007 21:56:31 +0000 (13 23:56 +0200)
committerJean Delvare <khali@hyperion.delvare>
Sat, 13 Oct 2007 21:56:31 +0000 (13 23:56 +0200)
tree7569f3402bdbb23c000ac59ad81522d3944f53f8
parent567a244b8b431ee8399bb43c7e65df605bdd5458
i2c-stub: Support multiple chips

Add support for multiple chips to i2c-stub. I've changed the memory
allocation scheme from static to dynamic, so that we don't waste too
much memory.

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