summaryrefslogtreecommitdiffstats
path: root/lib/obsd-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/obsd-device.c')
-rw-r--r--lib/obsd-device.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/lib/obsd-device.c b/lib/obsd-device.c
index e2e7652..41f16ce 100644
--- a/lib/obsd-device.c
+++ b/lib/obsd-device.c
@@ -138,17 +138,14 @@ obsd_write(struct pci_dev *d, int pos, byte *buf, int len)
}
struct pci_methods pm_obsd_device = {
- "obsd-device",
- "/dev/pci on OpenBSD",
- obsd_config,
- obsd_detect,
- obsd_init,
- obsd_cleanup,
- pci_generic_scan,
- pci_generic_fill_info,
- obsd_read,
- obsd_write,
- NULL, /* read_vpd */
- NULL, /* dev_init */
- NULL /* dev_cleanup */
+ .name = "obsd-device",
+ .help = "/dev/pci on OpenBSD",
+ .config = obsd_config,
+ .detect = obsd_detect,
+ .init = obsd_init,
+ .cleanup = obsd_cleanup,
+ .scan = pci_generic_scan,
+ .fill_info = pci_generic_fill_info,
+ .read = obsd_read,
+ .write = obsd_write,
};