* [PATCH] staging/comedi/icp_multi: fix sparse warning "obsolete struct initializer"
@ 2011-01-10 22:18 Peter Huewe
2011-01-18 21:49 ` Peter Hüwe
0 siblings, 1 reply; 2+ messages in thread
From: Peter Huewe @ 2011-01-10 22:18 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Arun Thomas, devel, linux-kernel, Peter Huewe
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>
---
drivers/staging/comedi/drivers/icp_multi.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/comedi/drivers/icp_multi.c b/drivers/staging/comedi/drivers/icp_multi.c
index 809d17e..0bab39b 100644
--- a/drivers/staging/comedi/drivers/icp_multi.c
+++ b/drivers/staging/comedi/drivers/icp_multi.c
@@ -176,13 +176,13 @@ static const struct boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype))
static struct comedi_driver driver_icp_multi = {
-driver_name: "icp_multi",
-module : THIS_MODULE,
-attach : icp_multi_attach,
-detach : icp_multi_detach,
-num_names : n_boardtypes,
-board_name : &boardtypes[0].name,
-offset : sizeof(struct boardtype),
+ .driver_name = "icp_multi",
+ .module = THIS_MODULE,
+ .attach = icp_multi_attach,
+ .detach = icp_multi_detach,
+ .num_names = n_boardtypes,
+ .board_name = &boardtypes[0].name,
+ .offset = sizeof(struct boardtype),
};
static int __init driver_icp_multi_init_module(void)
--
1.7.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging/comedi/icp_multi: fix sparse warning "obsolete struct initializer"
2011-01-10 22:18 [PATCH] staging/comedi/icp_multi: fix sparse warning "obsolete struct initializer" Peter Huewe
@ 2011-01-18 21:49 ` Peter Hüwe
0 siblings, 0 replies; 2+ messages in thread
From: Peter Hüwe @ 2011-01-18 21:49 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Arun Thomas, devel, linux-kernel
Am Montag 10 Januar 2011, 23:18:33 schrieb Peter Huewe:
> 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>
> ---
Ping - any updates on this one?
Thanks,
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-18 21:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 22:18 [PATCH] staging/comedi/icp_multi: fix sparse warning "obsolete struct initializer" Peter Huewe
2011-01-18 21:49 ` Peter Hüwe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.