]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
musb: Use name based initialization for musb_config
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Thu, 10 Jun 2010 05:50:47 +0000 (11:20 +0530)
committerRemy Bohmer <linux@bohmer.net>
Wed, 30 Jun 2010 19:37:37 +0000 (21:37 +0200)
Changed musb_config initialization for omap3.c, davinci.c
and da8xx.c using name of structure fields. This would cause
the uninitialized field to be null by default and thus would
help in avoiding to init some flags required to be set only
for a few selected platforms.

CC: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
drivers/usb/musb/da8xx.c
drivers/usb/musb/davinci.c
drivers/usb/musb/omap3.c

index 40bfe440d820e53a804ea40e89996025071415fe..617d88e1a70c4d9efcc31960292a08f4982a72df 100644 (file)
@@ -27,9 +27,9 @@
 
 /* MUSB platform configuration */
 struct musb_config musb_cfg = {
-       (struct musb_regs *)DA8XX_USB_OTG_CORE_BASE,
-       DA8XX_USB_OTG_TIMEOUT,
-       0
+       .regs           = (struct musb_regs *)DA8XX_USB_OTG_CORE_BASE,
+       .timeout        = DA8XX_USB_OTG_TIMEOUT,
+       .musb_speed     = 0,
 };
 
 /*
index 8fbadc962f41dec51ce7fb97b062fc80b47ba887..f56f2df532ec46c98ae2bd48fbca8f25e6abf9dd 100644 (file)
@@ -28,9 +28,9 @@
 
 /* MUSB platform configuration */
 struct musb_config musb_cfg = {
-       (struct musb_regs *)MENTOR_USB0_BASE,
-       DAVINCI_USB_TIMEOUT,
-       0
+       .regs           = (struct musb_regs *)MENTOR_USB0_BASE,
+       .timeout        = DAVINCI_USB_TIMEOUT,
+       .musb_speed     = 0,
 };
 
 /* MUSB module register overlay */
index 3bfd0a085f8e353376bb8218534ccb59f900fe36..785629cb7baf5627f1c76606d42fcad7cfa44868 100644 (file)
@@ -36,9 +36,9 @@
 static int platform_needs_initialization = 1;
 
 struct musb_config musb_cfg = {
-       (struct musb_regs *)MENTOR_USB0_BASE,
-       OMAP3_USB_TIMEOUT,
-       0
+       .regs           = (struct musb_regs *)MENTOR_USB0_BASE,
+       .timeout        = OMAP3_USB_TIMEOUT,
+       .musb_speed     = 0,
 };
 
 /*