summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/gpib.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/gpib.c')
-rw-r--r--sys/i386/isa/gpib.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/sys/i386/isa/gpib.c b/sys/i386/isa/gpib.c
index 0a5a0e0..288775e 100644
--- a/sys/i386/isa/gpib.c
+++ b/sys/i386/isa/gpib.c
@@ -73,19 +73,12 @@ static d_ioctl_t gpioctl;
#define CDEV_MAJOR 44
static struct cdevsw gp_cdevsw = {
- /* open */ gpopen,
- /* close */ gpclose,
- /* read */ noread,
- /* write */ gpwrite,
- /* ioctl */ gpioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "gp",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = gpopen,
+ .d_close = gpclose,
+ .d_write = gpwrite,
+ .d_ioctl = gpioctl,
+ .d_name = "gp",
+ .d_maj = CDEV_MAJOR,
};
#define BUFSIZE 1024
OpenPOWER on IntegriCloud