[SCSI] iscsi class: sysfs group is_visible callout for session attrs
[linux-2.6.git] / include / scsi / scsi_transport_iscsi.h
index 8918329..53eb938 100644 (file)
@@ -86,7 +86,6 @@ struct iscsi_transport {
        char *name;
        unsigned int caps;
        /* LLD sets this to indicate what values it can export to sysfs */
-       uint64_t param_mask;
        uint64_t host_param_mask;
        uint64_t iface_param_mask;
 
@@ -219,6 +218,9 @@ struct iscsi_cls_session {
 #define iscsi_dev_to_session(_dev) \
        container_of(_dev, struct iscsi_cls_session, dev)
 
+#define transport_class_to_session(_cdev) \
+       iscsi_dev_to_session(_cdev->parent)
+
 #define iscsi_session_to_shost(_session) \
        dev_to_shost(_session->dev.parent)