Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148092
b: refs/heads/master
c: 85e2399
h: refs/heads/master
v: v3
  • Loading branch information
Brian King authored and James Bottomley committed Jun 8, 2009
1 parent 017ace2 commit c8347d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 55 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7270b9bde5f382e730e1ef69d6c1b34d388df2b0
refs/heads/master: 85e2399e925e0afa04dd6e185a910bdd3dc4626b
67 changes: 13 additions & 54 deletions trunk/drivers/scsi/ibmvscsi/ibmvfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2434,14 +2434,6 @@ static ssize_t ibmvfc_show_host_partition_name(struct device *dev,
vhost->login_buf->resp.partition_name);
}

static struct device_attribute ibmvfc_host_partition_name = {
.attr = {
.name = "partition_name",
.mode = S_IRUGO,
},
.show = ibmvfc_show_host_partition_name,
};

static ssize_t ibmvfc_show_host_device_name(struct device *dev,
struct device_attribute *attr, char *buf)
{
Expand All @@ -2452,14 +2444,6 @@ static ssize_t ibmvfc_show_host_device_name(struct device *dev,
vhost->login_buf->resp.device_name);
}

static struct device_attribute ibmvfc_host_device_name = {
.attr = {
.name = "device_name",
.mode = S_IRUGO,
},
.show = ibmvfc_show_host_device_name,
};

static ssize_t ibmvfc_show_host_loc_code(struct device *dev,
struct device_attribute *attr, char *buf)
{
Expand All @@ -2470,14 +2454,6 @@ static ssize_t ibmvfc_show_host_loc_code(struct device *dev,
vhost->login_buf->resp.port_loc_code);
}

static struct device_attribute ibmvfc_host_loc_code = {
.attr = {
.name = "port_loc_code",
.mode = S_IRUGO,
},
.show = ibmvfc_show_host_loc_code,
};

static ssize_t ibmvfc_show_host_drc_name(struct device *dev,
struct device_attribute *attr, char *buf)
{
Expand All @@ -2488,14 +2464,6 @@ static ssize_t ibmvfc_show_host_drc_name(struct device *dev,
vhost->login_buf->resp.drc_name);
}

static struct device_attribute ibmvfc_host_drc_name = {
.attr = {
.name = "drc_name",
.mode = S_IRUGO,
},
.show = ibmvfc_show_host_drc_name,
};

static ssize_t ibmvfc_show_host_npiv_version(struct device *dev,
struct device_attribute *attr, char *buf)
{
Expand All @@ -2504,14 +2472,6 @@ static ssize_t ibmvfc_show_host_npiv_version(struct device *dev,
return snprintf(buf, PAGE_SIZE, "%d\n", vhost->login_buf->resp.version);
}

static struct device_attribute ibmvfc_host_npiv_version = {
.attr = {
.name = "npiv_version",
.mode = S_IRUGO,
},
.show = ibmvfc_show_host_npiv_version,
};

/**
* ibmvfc_show_log_level - Show the adapter's error logging level
* @dev: class device struct
Expand Down Expand Up @@ -2556,14 +2516,13 @@ static ssize_t ibmvfc_store_log_level(struct device *dev,
return strlen(buf);
}

static struct device_attribute ibmvfc_log_level_attr = {
.attr = {
.name = "log_level",
.mode = S_IRUGO | S_IWUSR,
},
.show = ibmvfc_show_log_level,
.store = ibmvfc_store_log_level
};
static DEVICE_ATTR(partition_name, S_IRUGO, ibmvfc_show_host_partition_name, NULL);
static DEVICE_ATTR(device_name, S_IRUGO, ibmvfc_show_host_device_name, NULL);
static DEVICE_ATTR(port_loc_code, S_IRUGO, ibmvfc_show_host_loc_code, NULL);
static DEVICE_ATTR(drc_name, S_IRUGO, ibmvfc_show_host_drc_name, NULL);
static DEVICE_ATTR(npiv_version, S_IRUGO, ibmvfc_show_host_npiv_version, NULL);
static DEVICE_ATTR(log_level, S_IRUGO | S_IWUSR,
ibmvfc_show_log_level, ibmvfc_store_log_level);

#ifdef CONFIG_SCSI_IBMVFC_TRACE
/**
Expand Down Expand Up @@ -2612,12 +2571,12 @@ static struct bin_attribute ibmvfc_trace_attr = {
#endif

static struct device_attribute *ibmvfc_attrs[] = {
&ibmvfc_host_partition_name,
&ibmvfc_host_device_name,
&ibmvfc_host_loc_code,
&ibmvfc_host_drc_name,
&ibmvfc_host_npiv_version,
&ibmvfc_log_level_attr,
&dev_attr_partition_name,
&dev_attr_device_name,
&dev_attr_port_loc_code,
&dev_attr_drc_name,
&dev_attr_npiv_version,
&dev_attr_log_level,
NULL
};

Expand Down

0 comments on commit c8347d7

Please sign in to comment.