scsi: implement scsi_opcode_sa_name
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:54 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:02 +0000 (11:16 +0100)
commit6033f97919383b51ba6be74fbc1071ba934f9716
tree1ddd0339234ca208e35582afe94b1c4d8a1dadc6
parent7ac7076344d90b27e0b6dcbe1380b0841f70859b
scsi: implement scsi_opcode_sa_name

Implement a lookup array for SERVICE ACTION commands instead
of hardcoding it in a large switch statement.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/constants.c