staging/comedi/icp_multi: fix sparse warning "obsolete struct initializer"

This patch fixes the sparse warnings
"obsolete struct initializer, use C99 syntax" in icp_multi.c
by converting the struct to C99 syntax

KernelVersion: linux-next-20110110

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Peter Huewe 2011-01-10 23:18:33 +01:00 committed by Greg Kroah-Hartman
parent 56aec8de6e
commit eb83939266
1 changed files with 7 additions and 7 deletions

View File

@ -176,13 +176,13 @@ static const struct boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype)) #define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype))
static struct comedi_driver driver_icp_multi = { static struct comedi_driver driver_icp_multi = {
driver_name: "icp_multi", .driver_name = "icp_multi",
module : THIS_MODULE, .module = THIS_MODULE,
attach : icp_multi_attach, .attach = icp_multi_attach,
detach : icp_multi_detach, .detach = icp_multi_detach,
num_names : n_boardtypes, .num_names = n_boardtypes,
board_name : &boardtypes[0].name, .board_name = &boardtypes[0].name,
offset : sizeof(struct boardtype), .offset = sizeof(struct boardtype),
}; };
static int __init driver_icp_multi_init_module(void) static int __init driver_icp_multi_init_module(void)