]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_transport_spi: convert to attribute groups
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 5 Jan 2008 16:18:27 +0000 (10:18 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 23 Jan 2008 17:29:18 +0000 (11:29 -0600)
commit1d1ea325cdedc4fc29f3305b546a66f483d2d42f
tree1a08462a016105ef372fba8c5aa4ef24205aa46b
parentb610156669c654dd5c521eb459b2f1d69901f02b
[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