ses: add reliable slot attribute
authorDan Williams <dan.j.williams@intel.com>
Tue, 30 Dec 2014 22:46:17 +0000 (14:46 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:19 +0000 (15:44 +0100)
commit921ce7f5786052749a22a75780f5ce1a456bcdc6
tree88b5aa17bc95e68a8ab7635bbc2a0221718044ca
parent967f7bab0eaaa74d7d01a56d45aa309f78fb87dd
ses: add reliable slot attribute

The name provided by firmware is in a vendor specific format, publish
the slot number to have a reliable mechanism for identifying slots
across firmware implementations.  If the enclosure does not provide a
slot number fallback to the component number which is guaranteed unique,
and usually mirrors the slot number.

Cleaned up the unused ses_component.desc in the process.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/misc/enclosure.c
drivers/scsi/ses.c
include/linux/enclosure.h