]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
i2c: Move adapter locking helpers to i2c-core
authorJean Delvare <khali@linux-fr.org>
Wed, 11 Aug 2010 16:20:58 +0000 (18:20 +0200)
committerJean Delvare <khali@linux-fr.org>
Wed, 11 Aug 2010 16:20:58 +0000 (18:20 +0200)
commitfe61e07e9ebc890c70d97a1f72ddaad4bee2d848
treee6ab84f0c09c555899884f2b730d205e3244dd8f
parentd44f19d586b6113fb5db10e1a36457f0db3b01aa
i2c: Move adapter locking helpers to i2c-core

Uninline i2c adapter locking helper functions, move them to i2c-core,
and use them in i2c-core itself. The functions are still exported for
external users. This makes future updates to the locking model (which
will be needed for multiplexing support) possible and transparent.

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