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-xxxx.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-xxxx.c')
-rw-r--r-- | drivers/scsi/3w-xxxx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index adb98a297210..8c22329aa85e 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c | |||
@@ -484,9 +484,10 @@ static void tw_state_request_start(TW_Device_Extension *tw_dev, int *request_id) | |||
484 | } /* End tw_state_request_start() */ | 484 | } /* End tw_state_request_start() */ |
485 | 485 | ||
486 | /* Show some statistics about the card */ | 486 | /* Show some statistics about the card */ |
487 | static ssize_t tw_show_stats(struct class_device *class_dev, char *buf) | 487 | static ssize_t tw_show_stats(struct device *dev, struct device_attribute *attr, |
488 | char *buf) | ||
488 | { | 489 | { |
489 | struct Scsi_Host *host = class_to_shost(class_dev); | 490 | struct Scsi_Host *host = class_to_shost(dev); |
490 | TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; | 491 | TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; |
491 | unsigned long flags = 0; | 492 | unsigned long flags = 0; |
492 | ssize_t len; | 493 | ssize_t len; |
@@ -528,7 +529,7 @@ static int tw_change_queue_depth(struct scsi_device *sdev, int queue_depth) | |||
528 | } /* End tw_change_queue_depth() */ | 529 | } /* End tw_change_queue_depth() */ |
529 | 530 | ||
530 | /* Create sysfs 'stats' entry */ | 531 | /* Create sysfs 'stats' entry */ |
531 | static struct class_device_attribute tw_host_stats_attr = { | 532 | static struct device_attribute tw_host_stats_attr = { |
532 | .attr = { | 533 | .attr = { |
533 | .name = "stats", | 534 | .name = "stats", |
534 | .mode = S_IRUGO, | 535 | .mode = S_IRUGO, |
@@ -537,7 +538,7 @@ static struct class_device_attribute tw_host_stats_attr = { | |||
537 | }; | 538 | }; |
538 | 539 | ||
539 | /* Host attributes initializer */ | 540 | /* Host attributes initializer */ |
540 | static struct class_device_attribute *tw_host_attrs[] = { | 541 | static struct device_attribute *tw_host_attrs[] = { |
541 | &tw_host_stats_attr, | 542 | &tw_host_stats_attr, |
542 | NULL, | 543 | NULL, |
543 | }; | 544 | }; |