diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-01-23 07:53:01 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-01-23 07:53:01 +0000 |
commit | 70f8783114482fec3ceeb827631068cfa295f35c (patch) | |
tree | 029f45999785eb27fe81cceb58d0bcfc5f3b6c4c /sys/dev/pci/mfii.c | |
parent | 23dd46d505121de510c955356150dedba821294b (diff) |
Use a consistant idiom/format when declaring scsi_adapter structures
in drivers. Terse one liners, NULLs instead of 0's, explicitly specify
all members, etc.
Nuke #ifdef notyet blocks related to the scsi_adapter in aic.
No intentional functional change.
ok tedu@
Diffstat (limited to 'sys/dev/pci/mfii.c')
-rw-r--r-- | sys/dev/pci/mfii.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c index 089f07d958a..eba6088f81b 100644 --- a/sys/dev/pci/mfii.c +++ b/sys/dev/pci/mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfii.c,v 1.64 2019/12/31 10:05:32 mpi Exp $ */ +/* $OpenBSD: mfii.c,v 1.65 2020/01/23 07:53:00 krw Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@openbsd.org> @@ -379,20 +379,14 @@ int mfii_scsi_ioctl(struct scsi_link *, u_long, caddr_t, int); int mfii_ioctl_cache(struct scsi_link *, u_long, struct dk_cache *); struct scsi_adapter mfii_switch = { - mfii_scsi_cmd, - scsi_minphys, - NULL, /* probe */ - NULL, /* unprobe */ - mfii_scsi_ioctl + mfii_scsi_cmd, scsi_minphys, NULL, NULL, mfii_scsi_ioctl }; void mfii_pd_scsi_cmd(struct scsi_xfer *); int mfii_pd_scsi_probe(struct scsi_link *); struct scsi_adapter mfii_pd_switch = { - mfii_pd_scsi_cmd, - scsi_minphys, - mfii_pd_scsi_probe + mfii_pd_scsi_cmd, scsi_minphys, mfii_pd_scsi_probe, NULL, NULL, }; #define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname) |