Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

aha1740: switch to ->show_info()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro e633c1e5 275084cb

+5 -24
+5 -24
drivers/scsi/aha1740.c
··· 106 106 return hdata->ecb_dma_addr + offset; 107 107 } 108 108 109 - static int aha1740_proc_info(struct Scsi_Host *shpnt, char *buffer, 110 - char **start, off_t offset, 111 - int length, int inout) 109 + static int aha1740_show_info(struct seq_file *m, struct Scsi_Host *shpnt) 112 110 { 113 - int len; 114 - struct aha1740_hostdata *host; 115 - 116 - if (inout) 117 - return-ENOSYS; 118 - 119 - host = HOSTDATA(shpnt); 120 - 121 - len = sprintf(buffer, "aha174x at IO:%lx, IRQ %d, SLOT %d.\n" 111 + struct aha1740_hostdata *host = HOSTDATA(shpnt); 112 + seq_printf(m, "aha174x at IO:%lx, IRQ %d, SLOT %d.\n" 122 113 "Extended translation %sabled.\n", 123 114 shpnt->io_port, shpnt->irq, host->edev->slot, 124 115 host->translation ? "en" : "dis"); 125 - 126 - if (offset > len) { 127 - *start = buffer; 128 - return 0; 129 - } 130 - 131 - *start = buffer + offset; 132 - len -= offset; 133 - if (len > length) 134 - len = length; 135 - return len; 116 + return 0; 136 117 } 137 118 138 119 static int aha1740_makecode(unchar *sense, unchar *status) ··· 537 556 static struct scsi_host_template aha1740_template = { 538 557 .module = THIS_MODULE, 539 558 .proc_name = "aha1740", 540 - .proc_info = aha1740_proc_info, 559 + .show_info = aha1740_show_info, 541 560 .name = "Adaptec 174x (EISA)", 542 561 .queuecommand = aha1740_queuecommand, 543 562 .bios_param = aha1740_biosparam,