diff options
author | Tony Jones <tonyj@suse.de> | 2008-02-21 18:13:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-19 22:10:33 -0400 |
commit | ee959b00c335d7780136c5abda37809191fe52c3 (patch) | |
tree | 7775f3b274fd8caf5e7e5154fea89e96f2babd94 /drivers/scsi/3w-9xxx.c | |
parent | 56d110e852b0b1c85ad6c9bfe1cb4473ceb16402 (diff) |
SCSI: convert struct class_device to struct device
It's big, but there doesn't seem to be a way to split it up smaller...
Signed-off-by: Tony Jones <tonyj@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Cc: Roland Dreier <rolandd@cisco.com>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/scsi/3w-9xxx.c')
-rw-r--r-- | drivers/scsi/3w-9xxx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index 51c3ebf1c7d1..b31faeccb9cd 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c | |||
@@ -140,9 +140,10 @@ static void twa_unmap_scsi_data(TW_Device_Extension *tw_dev, int request_id); | |||
140 | /* Functions */ | 140 | /* Functions */ |
141 | 141 | ||
142 | /* Show some statistics about the card */ | 142 | /* Show some statistics about the card */ |
143 | static ssize_t twa_show_stats(struct class_device *class_dev, char *buf) | 143 | static ssize_t twa_show_stats(struct device *dev, |
144 | struct device_attribute *attr, char *buf) | ||
144 | { | 145 | { |
145 | struct Scsi_Host *host = class_to_shost(class_dev); | 146 | struct Scsi_Host *host = class_to_shost(dev); |
146 | TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; | 147 | TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; |
147 | unsigned long flags = 0; | 148 | unsigned long flags = 0; |
148 | ssize_t len; | 149 | ssize_t len; |
@@ -184,7 +185,7 @@ static int twa_change_queue_depth(struct scsi_device *sdev, int queue_depth) | |||
184 | } /* End twa_change_queue_depth() */ | 185 | } /* End twa_change_queue_depth() */ |
185 | 186 | ||
186 | /* Create sysfs 'stats' entry */ | 187 | /* Create sysfs 'stats' entry */ |
187 | static struct class_device_attribute twa_host_stats_attr = { | 188 | static struct device_attribute twa_host_stats_attr = { |
188 | .attr = { | 189 | .attr = { |
189 | .name = "stats", | 190 | .name = "stats", |
190 | .mode = S_IRUGO, | 191 | .mode = S_IRUGO, |
@@ -193,7 +194,7 @@ static struct class_device_attribute twa_host_stats_attr = { | |||
193 | }; | 194 | }; |
194 | 195 | ||
195 | /* Host attributes initializer */ | 196 | /* Host attributes initializer */ |
196 | static struct class_device_attribute *twa_host_attrs[] = { | 197 | static struct device_attribute *twa_host_attrs[] = { |
197 | &twa_host_stats_attr, | 198 | &twa_host_stats_attr, |
198 | NULL, | 199 | NULL, |
199 | }; | 200 | }; |