]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] correct transport class abstraction to work outside SCSI
authorJames Bottomley <James.Bottomley@steeleye.com>
Sun, 14 Aug 2005 22:09:01 +0000 (17:09 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Sun, 14 Aug 2005 22:21:27 +0000 (17:21 -0500)
commitd0a7e574007fd547d72ec693bfa35778623d0738
tree3457bdf4e8eaf870971aab03c99c31534ba85658
parent10c1b88987d618f4f89c10e11e574c76de73b5e7
[SCSI] correct transport class abstraction to work outside SCSI

I recently tried to construct a totally generic transport class and
found there were certain features missing from the current abstract
transport class.  Most notable is that you have to hang the data on the
class_device but most of the API is framed in terms of the generic
device, not the class_device.

These changes are two fold

- Provide the class_device to all of the setup and configure APIs
- Provide and extra API to take the device and the attribute class and
  return the corresponding class_device

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/base/attribute_container.c
drivers/base/transport_class.c
drivers/scsi/scsi_transport_fc.c
drivers/scsi/scsi_transport_spi.c
include/linux/attribute_container.h
include/linux/transport_class.h