All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/vt6655: fix sparse warning "obsolete struct initializer"
@ 2011-01-10 22:28 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:28 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: devel, linux-kernel, Charles Clement, David S. Miller, Jiri Pirko,
	Peter Huewe

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

KernelVersion: linux-next-20110110

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
 drivers/staging/vt6655/device_main.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index f5028d9..4fbacf8 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -312,9 +312,9 @@ static int device_notify_reboot(struct notifier_block *, unsigned long event, vo
 static int viawget_suspend(struct pci_dev *pcid, pm_message_t state);
 static int viawget_resume(struct pci_dev *pcid);
 struct notifier_block device_notifier = {
-        notifier_call:  device_notify_reboot,
-        next:           NULL,
-        priority:       0
+	.notifier_call = device_notify_reboot,
+	.next = NULL,
+	.priority = 0,
 };
 #endif
 
@@ -3606,13 +3606,13 @@ static int ethtool_ioctl(struct net_device *dev, void *useraddr)
 MODULE_DEVICE_TABLE(pci, vt6655_pci_id_table);
 
 static struct pci_driver device_driver = {
-        name:       DEVICE_NAME,
-        id_table:   vt6655_pci_id_table,
-        probe:      vt6655_probe,
-        remove:     vt6655_remove,
+	.name = DEVICE_NAME,
+	.id_table = vt6655_pci_id_table,
+	.probe = vt6655_probe,
+	.remove = vt6655_remove,
 #ifdef CONFIG_PM
-        suspend:    viawget_suspend,
-        resume:     viawget_resume,
+	.suspend = viawget_suspend,
+	.resume = viawget_resume,
 #endif
 };
 
-- 
1.7.2.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging/vt6655: fix sparse warning "obsolete struct initializer"
  2011-01-10 22:28 [PATCH] staging/vt6655: 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: devel, linux-kernel, Charles Clement, David S. Miller, Jiri Pirko

Am Montag 10 Januar 2011, 23:28:06 schrieb Peter Huewe:
> This patch fixes the sparse warnings
> "obsolete struct initializer, use C99 syntax" in vt6655/device_main.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:28 [PATCH] staging/vt6655: 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.