scsi_transport_sas: add function to get SAS endpoint address
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 9 Dec 2015 19:13:35 +0000 (11:13 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 19 Dec 2015 03:29:50 +0000 (19:29 -0800)
commitbcf508c13385e74972f5cc06d8471d5c100395b0
tree28d306e2a10f68596e725941866b4871c2cb2954
parent3b91d09c1ca69a69c470efe5fbf346e3e90181d5
scsi_transport_sas: add function to get SAS endpoint address

For a device known to be SAS connected, this will return the endpoint
address.  This is useful for getting the SAS address of SATA devices.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_transport_sas.c
include/scsi/scsi_transport_sas.h