isci: add some type safety to the state machine interface
authorDan Williams <dan.j.williams@intel.com>
Thu, 12 May 2011 14:42:17 +0000 (07:42 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:49 +0000 (04:04 -0700)
commit9269e0e898594c65dee6b20d4ed48e33dbbd4eeb
treef08aebe48d8005eec30a439c1c2d0e1e4b15d4a4
parentf34d9e5d3f34f395a497a8747316b04ef3e865b1
isci: add some type safety to the state machine interface

Now that any given object type only has one state_machine we can use
container_of() to get back to the given state machine owner.

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/host.c
drivers/scsi/isci/phy.c
drivers/scsi/isci/port.c
drivers/scsi/isci/remote_device.c
drivers/scsi/isci/remote_node_context.c
drivers/scsi/isci/request.c
drivers/scsi/isci/state_machine.c
drivers/scsi/isci/state_machine.h