From ddb4b991958e095d619bc8deee793ffd579bac69 Mon Sep 17 00:00:00 2001 From: Thomas Cort Date: Tue, 4 Jun 2013 14:02:09 +0000 Subject: [PATCH] hello: use c99 struct initialization --- drivers/hello/hello.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/hello/hello.c b/drivers/hello/hello.c index 0dd6a27e4..bad1fbdad 100644 --- a/drivers/hello/hello.c +++ b/drivers/hello/hello.c @@ -24,16 +24,16 @@ static int lu_state_restore(void); /* Entry points to the hello driver. */ static struct chardriver hello_tab = { - hello_open, - hello_close, - nop_ioctl, - hello_prepare, - hello_transfer, - nop_cleanup, - nop_alarm, - nop_cancel, - nop_select, - NULL + .cdr_open = hello_open, + .cdr_close = hello_close, + .cdr_ioctl = nop_ioctl, + .cdr_prepare = hello_prepare, + .cdr_transfer = hello_transfer, + .cdr_cleanup = nop_cleanup, + .cdr_alarm = nop_alarm, + .cdr_cancel = nop_cancel, + .cdr_select = nop_select, + .cdr_other = NULL }; /** Represents the /dev/hello device. */