Files
linux-legacy/drivers
Jean Delvare f3b3aadbbd 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 <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-09-26 15:38:50 -07:00
..
…
2006-09-23 15:33:43 -05:00
2006-09-25 17:38:35 -07:00
…
…
…
…
2006-09-26 15:38:50 -07:00
2006-09-23 21:03:52 -05:00
2006-08-07 06:38:41 -04:00
…
…
…
…
…
…
…
…
2006-09-25 21:08:37 -07:00
…
2006-08-10 07:31:37 -04:00
2006-08-10 07:31:37 -04:00