summaryrefslogtreecommitdiff
path: root/include/linux/enclosure.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2014-12-31 01:46:17 +0300
committerChristoph Hellwig <hch@lst.de>2015-01-09 17:44:19 +0300
commit921ce7f5786052749a22a75780f5ce1a456bcdc6 (patch)
tree88b5aa17bc95e68a8ab7635bbc2a0221718044ca /include/linux/enclosure.h
parent967f7bab0eaaa74d7d01a56d45aa309f78fb87dd (diff)
downloadlinux-921ce7f5786052749a22a75780f5ce1a456bcdc6.tar.xz
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>
Diffstat (limited to 'include/linux/enclosure.h')
-rw-r--r--include/linux/enclosure.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/enclosure.h b/include/linux/enclosure.h
index 807622b252a4..0f826c14a337 100644
--- a/include/linux/enclosure.h
+++ b/include/linux/enclosure.h
@@ -92,6 +92,7 @@ struct enclosure_component {
int fault;
int active;
int locate;
+ int slot;
enum enclosure_status status;
};