All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ajay Kumar Gupta <ajay.gupta@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4 v3] musb: Use name based initialization for musb_config
Date: Thu, 10 Jun 2010 11:20:47 +0530	[thread overview]
Message-ID: <1276149050-12974-1-git-send-email-ajay.gupta@ti.com> (raw)

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>
---
No change from v2.

 drivers/usb/musb/da8xx.c   |    6 +++---
 drivers/usb/musb/davinci.c |    6 +++---
 drivers/usb/musb/omap3.c   |    6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index 40bfe44..617d88e 100644
--- a/drivers/usb/musb/da8xx.c
+++ b/drivers/usb/musb/da8xx.c
@@ -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,
 };
 
 /*
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c
index 8fbadc9..f56f2df 100644
--- a/drivers/usb/musb/davinci.c
+++ b/drivers/usb/musb/davinci.c
@@ -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 */
diff --git a/drivers/usb/musb/omap3.c b/drivers/usb/musb/omap3.c
index 3bfd0a0..785629c 100644
--- a/drivers/usb/musb/omap3.c
+++ b/drivers/usb/musb/omap3.c
@@ -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,
 };
 
 /*
-- 
1.6.2.4

             reply	other threads:[~2010-06-10  5:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10  5:50 Ajay Kumar Gupta [this message]
2010-06-10  5:50 ` [U-Boot] [PATCH 2/4 v3] musb: Add Phy programming for using external Vbus Ajay Kumar Gupta
2010-06-10  5:50   ` [U-Boot] [PATCH 3/4 v3] omap3evm: Add board revision function Ajay Kumar Gupta
2010-06-10  5:50     ` [U-Boot] [PATCH 4/4 v3] musb: Program extvbus for OMAP3EVM Rev >= E Ajay Kumar Gupta
2010-06-16 18:42       ` Remy Bohmer
2010-06-15 20:31     ` [U-Boot] [PATCH 3/4 v3] omap3evm: Add board revision function Remy Bohmer
2010-06-15 20:39       ` Paulraj, Sandeep
2010-06-16 18:44     ` Remy Bohmer
2010-06-10  6:15   ` [U-Boot] [PATCH 2/4 v3] musb: Add Phy programming for using external Vbus Mike Frysinger
2010-06-16 18:43   ` Remy Bohmer
2011-07-05  8:45   ` [U-Boot] [PATCH 2/4 v3] musb: Add Phy programming for usingexternal Vbus Orjan Friberg
2011-07-05 11:15     ` Gupta, Ajay Kumar
2011-07-05 11:52       ` Orjan Friberg
2011-07-05 14:16         ` Gupta, Ajay Kumar
2011-07-06 11:12           ` Orjan Friberg
2010-06-16 18:43 ` [U-Boot] [PATCH 1/4 v3] musb: Use name based initialization for musb_config Remy Bohmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1276149050-12974-1-git-send-email-ajay.gupta@ti.com \
    --to=ajay.gupta@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.