]> git.baikalelectronics.ru Git - 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)
commit3be98034de4ebd009a000c92888f9a55ec3c3286
tree380980cfaf7923b701a2cb95ba17071c9afa225a
parente20e01ecfd4fe672f9b14f29969bf428be941c14
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