]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit4b1d8e78615d1ab19ac85aef4d61c47f175ecf50
tree8ebc9688c511cda5d19190808f395b898c47516e
parenta44c9d36509c83cf64f33b93f6ab2e63822c01eb
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