]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
isci: phy state machine cleanup step1
authorDan Williams <dan.j.williams@intel.com>
Wed, 23 Feb 2011 08:14:06 +0000 (00:14 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 10:55:27 +0000 (03:55 -0700)
commit8f31550c77849250ec49d1509b6bb63b4ddc59e4
tree380980cfaf7923b701a2cb95ba17071c9afa225a
parent858d4aa741c80fb7579cda3517853f0cffc73772
isci: phy state machine cleanup step1

 c99 the struct initializers:
1/ allows grep to consistently show method name associations.  The
   naming is mostly consistent (except when it isn't) so this guarantees
   coverage of present and future exception cases.
2/ let's the compiler guarantee that the state table array entry
   correlates with an actual state name and detect accidental reordering or
   deletion of states.
/ allows default handler's to be identified easily

Signed-off-by: Jacek Danecki <Jacek.Danecki@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/core/sci_base_phy.h
drivers/scsi/isci/core/scic_sds_phy.c
drivers/scsi/isci/core/scic_sds_phy.h