Commit ea697e45 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley

[SCSI] unused show_spi_transport_period_helper parameter

show_spi_transport_period_helper() doesn't need the class_device parameter
Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent a97a83a0
...@@ -401,8 +401,7 @@ static int period_to_str(char *buf, int period) ...@@ -401,8 +401,7 @@ static int period_to_str(char *buf, int period)
} }
static ssize_t static ssize_t
show_spi_transport_period_helper(struct class_device *cdev, char *buf, show_spi_transport_period_helper(char *buf, int period)
int period)
{ {
int len = period_to_str(buf, period); int len = period_to_str(buf, period);
buf[len++] = '\n'; buf[len++] = '\n';
...@@ -459,7 +458,7 @@ show_spi_transport_period(struct class_device *cdev, char *buf) ...@@ -459,7 +458,7 @@ show_spi_transport_period(struct class_device *cdev, char *buf)
if (i->f->get_period) if (i->f->get_period)
i->f->get_period(starget); i->f->get_period(starget);
return show_spi_transport_period_helper(cdev, buf, tp->period); return show_spi_transport_period_helper(buf, tp->period);
} }
static ssize_t static ssize_t
...@@ -494,7 +493,7 @@ show_spi_transport_min_period(struct class_device *cdev, char *buf) ...@@ -494,7 +493,7 @@ show_spi_transport_min_period(struct class_device *cdev, char *buf)
struct spi_transport_attrs *tp = struct spi_transport_attrs *tp =
(struct spi_transport_attrs *)&starget->starget_data; (struct spi_transport_attrs *)&starget->starget_data;
return show_spi_transport_period_helper(cdev, buf, tp->min_period); return show_spi_transport_period_helper(buf, tp->min_period);
} }
static ssize_t static ssize_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment