summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto/cryptodev.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/opencrypto/cryptodev.c')
-rw-r--r--sys/opencrypto/cryptodev.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c
index d8487f4..a40c859 100644
--- a/sys/opencrypto/cryptodev.c
+++ b/sys/opencrypto/cryptodev.c
@@ -747,20 +747,13 @@ cryptoioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
#define CRYPTO_MAJOR 70 /* from openbsd */
static struct cdevsw crypto_cdevsw = {
- /* open */ cryptoopen,
- /* close */ nullclose,
- /* read */ cryptoread,
- /* write */ cryptowrite,
- /* ioctl */ cryptoioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* dev name */ "crypto",
- /* dev major */ CRYPTO_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
- /* kqfilter */ NULL
+ .d_open = cryptoopen,
+ .d_close = nullclose,
+ .d_read = cryptoread,
+ .d_write = cryptowrite,
+ .d_ioctl = cryptoioctl,
+ .d_name = "crypto",
+ .d_maj = CRYPTO_MAJOR,
};
static dev_t crypto_dev;
OpenPOWER on IntegriCloud