From: Jean Delvare Date: Mon, 10 Jan 2011 21:11:23 +0000 (+0100) Subject: i2c-algo-bit: Refactor adapter registration X-Git-Tag: v2.6.38-rc1~420^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f451171c5ac829e55581c81caf2cb01e1c0a5c5f;p=pandora-kernel.git i2c-algo-bit: Refactor adapter registration Use a function pointer to decide whether to call i2c_add_adapter or i2c_add_numbered_adapter. This makes the code more compact than the current strategy of having the common code in a separate function. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed