aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-stub.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-12-06 17:06:27 +0100
committerJean Delvare <khali@linux-fr.org>2009-12-06 17:06:27 +0100
commit69b0089a6750a0435570df3ba8456c77b352af55 (patch)
tree6d8826c7fec2ff30eb294dd04a1677079158afab /drivers/i2c/busses/i2c-stub.c
parenti2c-i801: Retry on lost arbitration (diff)
downloadlinux-dev-69b0089a6750a0435570df3ba8456c77b352af55.tar.xz
linux-dev-69b0089a6750a0435570df3ba8456c77b352af55.zip
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions