summaryrefslogtreecommitdiff
path: root/drivers/scsi/fdomain_isa.c
diff options
context:
space:
mode:
authorOndrej Zary <linux@zary.sk>2019-05-18 21:47:24 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-06-18 19:46:22 -0400
commit1697c6a64c49df3ed1a7e81845dcf2edf6ea23db (patch)
treedd2211b714171f3ba645b573bacd7547c2873e32 /drivers/scsi/fdomain_isa.c
parentaa343c695aa59f03f31a2f989b8c977a727e46e3 (diff)
scsi: fdomain: Add register definitions
Add register bit definitions from documentation to header file and use them instead of magic constants. No changes to generated binary. Signed-off-by: Ondrej Zary <linux@zary.sk> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fdomain_isa.c')
-rw-r--r--drivers/scsi/fdomain_isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/fdomain_isa.c b/drivers/scsi/fdomain_isa.c
index bca5d56f12aa..28639adf8219 100644
--- a/drivers/scsi/fdomain_isa.c
+++ b/drivers/scsi/fdomain_isa.c
@@ -131,7 +131,7 @@ static int fdomain_isa_match(struct device *dev, unsigned int ndev)
if (!request_region(base, FDOMAIN_REGION_SIZE, "fdomain_isa"))
return 0;
- irq = irqs[(inb(base + Configuration1) & 0x0e) >> 1];
+ irq = irqs[(inb(base + REG_CFG1) & 0x0e) >> 1];
if (sig)
@@ -164,7 +164,7 @@ static int fdomain_isa_param_match(struct device *dev, unsigned int ndev)
}
if (irq_ <= 0)
- irq_ = irqs[(inb(io[ndev] + Configuration1) & 0x0e) >> 1];
+ irq_ = irqs[(inb(io[ndev] + REG_CFG1) & 0x0e) >> 1];
sh = fdomain_create(io[ndev], irq_, scsi_id[ndev], dev);
if (!sh) {