hello: use c99 struct initialization

This commit is contained in:
Thomas Cort 2013-06-04 14:02:09 +00:00
parent 1d842c6a57
commit ddb4b99195

View File

@ -24,16 +24,16 @@ static int lu_state_restore(void);
/* Entry points to the hello driver. */ /* Entry points to the hello driver. */
static struct chardriver hello_tab = static struct chardriver hello_tab =
{ {
hello_open, .cdr_open = hello_open,
hello_close, .cdr_close = hello_close,
nop_ioctl, .cdr_ioctl = nop_ioctl,
hello_prepare, .cdr_prepare = hello_prepare,
hello_transfer, .cdr_transfer = hello_transfer,
nop_cleanup, .cdr_cleanup = nop_cleanup,
nop_alarm, .cdr_alarm = nop_alarm,
nop_cancel, .cdr_cancel = nop_cancel,
nop_select, .cdr_select = nop_select,
NULL .cdr_other = NULL
}; };
/** Represents the /dev/hello device. */ /** Represents the /dev/hello device. */