]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Introduce scsi_devinfo_key enumeration type
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 4 Dec 2017 18:36:33 +0000 (10:36 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Dec 2017 02:06:58 +0000 (21:06 -0500)
commit8d6ba0f31a20b3a3523fe831de278dd68b7c55f6
tree8ebc9688c511cda5d19190808f395b898c47516e
parentd87d3855d494e92989812f3b2d34f48757c1a0b1
scsi: core: Introduce scsi_devinfo_key enumeration type

Since symbolic names for the device information keys alread exist,
associate an enumeration type with these symbolic values. This change
makes it clear what the valid values for the 'key' arguments are.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_devinfo.c
drivers/scsi/scsi_priv.h