mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
aha1740: switch to ->show_info()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
275084cbff
commit
e633c1e557
1 changed files with 5 additions and 24 deletions
|
@ -106,33 +106,14 @@ static inline dma_addr_t ecb_cpu_to_dma (struct Scsi_Host *host, void *cpu)
|
||||||
return hdata->ecb_dma_addr + offset;
|
return hdata->ecb_dma_addr + offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int aha1740_proc_info(struct Scsi_Host *shpnt, char *buffer,
|
static int aha1740_show_info(struct seq_file *m, struct Scsi_Host *shpnt)
|
||||||
char **start, off_t offset,
|
|
||||||
int length, int inout)
|
|
||||||
{
|
{
|
||||||
int len;
|
struct aha1740_hostdata *host = HOSTDATA(shpnt);
|
||||||
struct aha1740_hostdata *host;
|
seq_printf(m, "aha174x at IO:%lx, IRQ %d, SLOT %d.\n"
|
||||||
|
|
||||||
if (inout)
|
|
||||||
return-ENOSYS;
|
|
||||||
|
|
||||||
host = HOSTDATA(shpnt);
|
|
||||||
|
|
||||||
len = sprintf(buffer, "aha174x at IO:%lx, IRQ %d, SLOT %d.\n"
|
|
||||||
"Extended translation %sabled.\n",
|
"Extended translation %sabled.\n",
|
||||||
shpnt->io_port, shpnt->irq, host->edev->slot,
|
shpnt->io_port, shpnt->irq, host->edev->slot,
|
||||||
host->translation ? "en" : "dis");
|
host->translation ? "en" : "dis");
|
||||||
|
return 0;
|
||||||
if (offset > len) {
|
|
||||||
*start = buffer;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
*start = buffer + offset;
|
|
||||||
len -= offset;
|
|
||||||
if (len > length)
|
|
||||||
len = length;
|
|
||||||
return len;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int aha1740_makecode(unchar *sense, unchar *status)
|
static int aha1740_makecode(unchar *sense, unchar *status)
|
||||||
|
@ -556,7 +537,7 @@ static int aha1740_eh_abort_handler (Scsi_Cmnd *dummy)
|
||||||
static struct scsi_host_template aha1740_template = {
|
static struct scsi_host_template aha1740_template = {
|
||||||
.module = THIS_MODULE,
|
.module = THIS_MODULE,
|
||||||
.proc_name = "aha1740",
|
.proc_name = "aha1740",
|
||||||
.proc_info = aha1740_proc_info,
|
.show_info = aha1740_show_info,
|
||||||
.name = "Adaptec 174x (EISA)",
|
.name = "Adaptec 174x (EISA)",
|
||||||
.queuecommand = aha1740_queuecommand,
|
.queuecommand = aha1740_queuecommand,
|
||||||
.bios_param = aha1740_biosparam,
|
.bios_param = aha1740_biosparam,
|
||||||
|
|
Loading…
Add table
Reference in a new issue