From: Jiri Kosina Date: Sun, 10 Dec 2006 20:21:30 +0000 (+0100) Subject: i2c: Add support for nested i2c bus locking X-Git-Tag: v2.6.20-rc1~146^2~2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea23039cb1cc7c379eb5fba0ed2c53291e9bea7;p=pandora-kernel.git 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 Signed-off-by: Jean Delvare --- Reading git-diff-tree failed