i2c-core: Use per-adapter userspace device lists
authorJean Delvare <khali@linux-fr.org>
Tue, 4 May 2010 09:09:28 +0000 (11:09 +0200)
committerJean Delvare <khali@linux-fr.org>
Tue, 4 May 2010 09:09:28 +0000 (11:09 +0200)
commit6629dcff19470a894ce294d0adb9cbab94ee1fb9
tree18f75a3f5ca83de96a0fe353fafa02bab174cd36
parentb1d4b390ea4bb480e65974ce522a04022608a8df
i2c-core: Use per-adapter userspace device lists

Using a single list for all userspace devices leads to a dead lock
on multiplexed buses in some circumstances (mux chip instantiated
from userspace). This is solved by using a separate list for each
bus segment.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Michael Lawnick <ml.lawnick@gmx.de>
drivers/i2c/i2c-core.c
include/linux/i2c.h