]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd755b22147d0e3179b79a5193f16737cbef69cdc
treef08aebe48d8005eec30a439c1c2d0e1e4b15d4a4
parente2934f35136c07b06e612f6803897a0def82d7d3
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