diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-02-07 10:01:02 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-02-27 23:55:07 -0500 |
commit | ea697e456a278fb74a925a6c6befe04054520994 (patch) | |
tree | 2f38fa647b17848b7c788addbd2187b1f972a3fa /drivers | |
parent | a97a83a06b44d4d1cb01191423caf9813a150b95 (diff) |
[SCSI] unused show_spi_transport_period_helper parameter
show_spi_transport_period_helper() doesn't need the class_device parameter
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi_transport_spi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c index a1e521b58b67..97f4be62f748 100644 --- a/drivers/scsi/scsi_transport_spi.c +++ b/drivers/scsi/scsi_transport_spi.c | |||
@@ -401,8 +401,7 @@ static int period_to_str(char *buf, int period) | |||
401 | } | 401 | } |
402 | 402 | ||
403 | static ssize_t | 403 | static ssize_t |
404 | show_spi_transport_period_helper(struct class_device *cdev, char *buf, | 404 | show_spi_transport_period_helper(char *buf, int period) |
405 | int period) | ||
406 | { | 405 | { |
407 | int len = period_to_str(buf, period); | 406 | int len = period_to_str(buf, period); |
408 | buf[len++] = '\n'; | 407 | buf[len++] = '\n'; |
@@ -459,7 +458,7 @@ show_spi_transport_period(struct class_device *cdev, char *buf) | |||
459 | if (i->f->get_period) | 458 | if (i->f->get_period) |
460 | i->f->get_period(starget); | 459 | i->f->get_period(starget); |
461 | 460 | ||
462 | return show_spi_transport_period_helper(cdev, buf, tp->period); | 461 | return show_spi_transport_period_helper(buf, tp->period); |
463 | } | 462 | } |
464 | 463 | ||
465 | static ssize_t | 464 | static ssize_t |
@@ -494,7 +493,7 @@ show_spi_transport_min_period(struct class_device *cdev, char *buf) | |||
494 | struct spi_transport_attrs *tp = | 493 | struct spi_transport_attrs *tp = |
495 | (struct spi_transport_attrs *)&starget->starget_data; | 494 | (struct spi_transport_attrs *)&starget->starget_data; |
496 | 495 | ||
497 | return show_spi_transport_period_helper(cdev, buf, tp->min_period); | 496 | return show_spi_transport_period_helper(buf, tp->min_period); |
498 | } | 497 | } |
499 | 498 | ||
500 | static ssize_t | 499 | static ssize_t |