scsi: Add scsi_vpd_tpg_id()
authorHannes Reinecke <hare@suse.de>
Tue, 1 Dec 2015 09:16:57 +0000 (10:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2015 21:43:11 +0000 (16:43 -0500)
commita8aa3978588a4fa2d9edabc151adedd97bbed091
tree9ae512c691e807de7ad4e0aca2b5bbfb3906679f
parent248d4fe95f232010846bc648ce92e40b07544c5d
scsi: Add scsi_vpd_tpg_id()

Implement scsi_vpd_tpg_id() to extract the target
port group id and the relative port id from
SCSI VPD page 0x83.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c
include/scsi/scsi_device.h