From: Jean Delvare Date: Sat, 1 Jul 2006 15:17:38 +0000 (+0200) Subject: i2c-dev: Use a list for data storage X-Git-Tag: v2.6.19-rc1~1003^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b3aadbbd66d8a020550b01b37d9b1ea559f2c3;p=pandora-kernel.git i2c-dev: Use a list for data storage i2c-dev: Use a list for data storage Use a list instead of a static array for storing the i2c-dev data. Given that most systems have less than 10 i2c busses, most of the space was wasted, so this saves around 1 kB of memory (2 kB on 64-bit archs.) The drawback is that lookup was in O(1) and is now in O(N), but given that the values of N are always small, I don't think this is a problem. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed