[SCSI] scsi_transport_spi: convert to attribute groups
commit9b161a4d3e83518323ce13822e55de70c630aa65
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 5 Jan 2008 16:18:27 +0000 (5 10:18 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 23 Jan 2008 17:29:18 +0000 (23 11:29 -0600)
tree1a08462a016105ef372fba8c5aa4ef24205aa46b
parentd4acd722b7bb5f48b9fc3848e8c2a845b100d84f
[SCSI] scsi_transport_spi: convert to attribute groups

This conversion makes full use of the is_visible() callback on attribute
groups.  Now, each device appears only with its capability flags in the
transport class directory.  Previously each device appeared with the
capability of the host, so this is a functionality improvement.
Converting to attribute groups allows us to sweep away most of the home
grown #defines that were effectively doing the same thing.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_transport_spi.c