summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_mgmt.c
diff options
context:
space:
mode:
authorJohn Soni Jose2012-10-20 01:12:25 +0200
committerJames Bottomley2012-11-27 05:59:36 +0100
commit5cac7596bac1fffda261643dba20be8c4c44b547 (patch)
treebb1392d7617bbc13ef53b02dc13ea8964819cbfd /drivers/scsi/be2iscsi/be_mgmt.c
parent[SCSI] be2iscsi: Fix max supported EQ count to 8. (diff)
downloadkernel-qcow2-linux-5cac7596bac1fffda261643dba20be8c4c44b547.tar.gz
kernel-qcow2-linux-5cac7596bac1fffda261643dba20be8c4c44b547.tar.xz
kernel-qcow2-linux-5cac7596bac1fffda261643dba20be8c4c44b547.zip
[SCSI] be2iscsi: Display driver name and version in device attribute
Signed-off-by: John Soni Jose <sony.john-n@emulex.com> Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_mgmt.c')
-rw-r--r--drivers/scsi/be2iscsi/be_mgmt.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c
index aab5dd359e2c..1ec1db3a1465 100644
--- a/drivers/scsi/be2iscsi/be_mgmt.c
+++ b/drivers/scsi/be2iscsi/be_mgmt.c
@@ -1136,3 +1136,19 @@ int mgmt_set_vlan(struct beiscsi_hba *phba,
free_mcc_tag(&phba->ctrl, tag);
return 0;
}
+
+/**
+ * beiscsi_drvr_ver_disp()- Display the driver Name and Version
+ * @dev: ptr to device not used.
+ * @attr: device attribute, not used.
+ * @buf: contains formatted text driver name and version
+ *
+ * return
+ * size of the formatted string
+ **/
+ssize_t
+beiscsi_drvr_ver_disp(struct device *dev, struct device_attribute *attr,
+ char *buf)
+{
+ return snprintf(buf, PAGE_SIZE, BE_NAME "\n");
+}