summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/twe_freebsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/twe/twe_freebsd.c')
-rw-r--r--sys/dev/twe/twe_freebsd.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/dev/twe/twe_freebsd.c b/sys/dev/twe/twe_freebsd.c
index 96c9d5a..a0b6db7 100644
--- a/sys/dev/twe/twe_freebsd.c
+++ b/sys/dev/twe/twe_freebsd.c
@@ -71,19 +71,11 @@ static d_ioctl_t twe_ioctl_wrapper;
#define TWE_CDEV_MAJOR 146
static struct cdevsw twe_cdevsw = {
- /* open */ twe_open,
- /* close */ twe_close,
- /* read */ noread,
- /* write */ nowrite,
- /* ioctl */ twe_ioctl_wrapper,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "twe",
- /* maj */ TWE_CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0
+ .d_open = twe_open,
+ .d_close = twe_close,
+ .d_ioctl = twe_ioctl_wrapper,
+ .d_name = "twe",
+ .d_maj = TWE_CDEV_MAJOR,
};
/********************************************************************************
OpenPOWER on IntegriCloud