Jean Delvare 69b0089a67 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 <khali@linux-fr.org>
Cc: David Brownell <dbrownell@users.sourceforge.net>
2009-12-06 17:06:27 +01:00
..
2009-12-01 16:32:20 -08:00
2009-12-01 16:32:19 -08:00
2009-12-06 17:06:27 +01:00
2009-09-24 07:21:05 -07:00
2009-12-01 11:24:19 +01:00
2009-12-06 17:06:26 +01:00
2009-10-15 09:58:27 -06:00
2009-11-12 07:26:01 -08:00
2009-10-04 22:53:41 +02:00
2009-10-04 15:05:10 -07:00
2009-09-23 10:07:49 -07:00