firewire: sbp2: move some code to more sensible places
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 27 Aug 2011 13:34:32 +0000 (15:34 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 16 Sep 2011 20:23:56 +0000 (22:23 +0200)
commitb2af07b6844aade3a6d69511625bef2b1cb609cc
tree0e2d6768fb10aeadfc1131ca6251a5bc98ccc479
parent6ff8147d075da2e1eb69fab2ee75104c59f573e0
firewire: sbp2: move some code to more sensible places

Implement sbp2_queue_work(), which is now a very simple accessor to one
of the struct sbp2_logical_unit members, right after the definition of
struct sbp2_logical_unit.

Put the sbp2_reconnect() implementation right after the sbp2_login()
implementation.  They are both part of the SBP-2 access protocol.

Implement the driver methods sbp2_probe(), spp2_update(), sbp2_remove()
in this order, reflecting the lifetime of an SBP-2 target.

Place the sbp2_release_target() implementation right next to
sbp2_remove() which is its primary user, and after sbp2_probe() which is
the counterpart to sbp2_release_target().

There are no changes to the implementations here, or at least not meant
to be.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/sbp2.c