From: Jean Delvare Date: Sun, 6 Dec 2009 16:06:27 +0000 (+0100) Subject: i2c: Refactor for_each callbacks X-Git-Tag: v2.6.33-rc1~385^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69b0089a6750a0435570df3ba8456c77b352af55;p=pandora-kernel.git i2c: Refactor for_each callbacks Functions i2c_do_add_adapter() and __attach_adapter() do essentially the same thing, differing only in how the parameters are passed. Same for i2c_do_add_adapter() and __detach_adapter(). Introduce wrappers to normalize the parameters, so that we do not have to duplicate the code. Signed-off-by: Jean Delvare Cc: David Brownell --- Reading git-diff-tree failed