android_kernel_xiaomi_sm8350/drivers/i2c
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
..
algos [PATCH] i2c-algo-bit: Wipe out dead code 2006-07-12 15:43:07 -07:00
busses Merge branch 'merge' 2006-08-08 17:09:11 +10:00
chips [PATCH] i2c: tps65010 build fixes 2006-08-26 13:05:12 -07:00
i2c-core.c [PATCH] i2c: Fix 'ignore' module parameter handling in i2c-core 2006-07-12 15:43:06 -07:00
i2c-dev.c i2c-dev: Use a list for data storage 2006-09-26 15:38:50 -07:00
Kconfig
Makefile [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00