i2c: Limit core locking to the necessary sections
commit35fc37f8188177e3ba3e7f99a6e3300e490e9181
authorJean Delvare <khali@linux-fr.org>
Fri, 19 Jun 2009 14:58:19 +0000 (19 16:58 +0200)
committerJean Delvare <khali@linux-fr.org>
Fri, 19 Jun 2009 14:58:19 +0000 (19 16:58 +0200)
treeed2e7f589cb33b0b8bb81aa0a7958c3d6c0cb002
parente549c2b54dd90a056d6824b885d438b7437874f0
i2c: Limit core locking to the necessary sections

The i2c-core code tends to hold the core lock for longer than it
should. Limit locking to the necessary sections for both performance
and clarity. This is also a requirement to support I2C multiplexers in
the future.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Rodolfo Giometti <giometti@linux.it>
Cc: David Brownell <dbrownell@users.sourceforge.net>
drivers/i2c/i2c-core.c