i2c: Add support for nested i2c bus locking

This patch adds the 'level' field into the i2c_adapter structure, which is 
used to represent the 'logical' level of nesting for the purposes of 
lockdep. This field is then used in the i2c_transfer() function, to 
acquire the per-adapter bus_lock with correct nesting level.

Signed-off-by: Jiri Kosina <jikos@jikos.cz>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
Jiri Kosina 2006-12-10 21:21:30 +01:00 committed by Jean Delvare
commit 6ea23039cb
2 changed files with 2 additions and 1 deletions