summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-03 12:15:54 +0000
committerphk <phk@FreeBSD.org>2003-03-03 12:15:54 +0000
commit0ae911eb0e57eebb61c50c02ddf69aa67ed19599 (patch)
tree4e91d5779ffebe1d75e975aa4450f35f965430eb /sys/dev/ata/atapi-tape.c
parente58d97a666e757e8429a219da05f88a51554c32c (diff)
downloadFreeBSD-src-0ae911eb0e57eebb61c50c02ddf69aa67ed19599.zip
FreeBSD-src-0ae911eb0e57eebb61c50c02ddf69aa67ed19599.tar.gz
Gigacommit to improve device-driver source compatibility between
branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index 76a5c46..b81dd94 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -52,19 +52,15 @@ static d_close_t astclose;
static d_ioctl_t astioctl;
static d_strategy_t aststrategy;
static struct cdevsw ast_cdevsw = {
- /* open */ astopen,
- /* close */ astclose,
- /* read */ physread,
- /* write */ physwrite,
- /* ioctl */ astioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ aststrategy,
- /* name */ "ast",
- /* maj */ 119,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_TAPE | D_TRACKCLOSE,
+ .d_open = astopen,
+ .d_close = astclose,
+ .d_read = physread,
+ .d_write = physwrite,
+ .d_ioctl = astioctl,
+ .d_strategy = aststrategy,
+ .d_name = "ast",
+ .d_maj = 119,
+ .d_flags = D_TAPE | D_TRACKCLOSE,
};
/* prototypes */
OpenPOWER on IntegriCloud