* [PATCH] i2c: twl4030: warning: mixed declarations and code
@ 2008-06-11 11:55 Felipe Balbi
2008-06-11 13:53 ` Eduardo Valentin
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2008-06-11 11:55 UTC (permalink / raw)
To: linux-omap; +Cc: Felipe Balbi
Latest patches for multi-omap support introduced
it, removing.
Trivial patch.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
drivers/i2c/chips/twl4030-usb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/i2c/chips/twl4030-usb.c b/drivers/i2c/chips/twl4030-usb.c
index 7f93b4f..f546d42 100644
--- a/drivers/i2c/chips/twl4030-usb.c
+++ b/drivers/i2c/chips/twl4030-usb.c
@@ -625,8 +625,8 @@ static int twl4030_set_suspend(struct otg_transceiver *x, int suspend)
static int twl4030_set_peripheral(struct otg_transceiver *xceiv,
struct usb_gadget *gadget)
{
- struct twl4030_usb *twl = xceiv_to_twl(xceiv);
u32 l;
+ struct twl4030_usb *twl = xceiv_to_twl(xceiv);
if (!xceiv)
return -ENODEV;
--
1.5.6.rc1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] i2c: twl4030: warning: mixed declarations and code
2008-06-11 11:55 [PATCH] i2c: twl4030: warning: mixed declarations and code Felipe Balbi
@ 2008-06-11 13:53 ` Eduardo Valentin
2008-06-11 13:55 ` Felipe Balbi
0 siblings, 1 reply; 5+ messages in thread
From: Eduardo Valentin @ 2008-06-11 13:53 UTC (permalink / raw)
To: Felipe Balbi; +Cc: linux-omap
Hi Balbi,
Sorry but I didn't get your point with your patch.
On Wed, Jun 11, 2008 at 7:55 AM, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> Latest patches for multi-omap support introduced
> it, removing.
What exactly you are removing?
>
> Trivial patch.
>
> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
> ---
> drivers/i2c/chips/twl4030-usb.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/i2c/chips/twl4030-usb.c b/drivers/i2c/chips/twl4030-usb.c
> index 7f93b4f..f546d42 100644
> --- a/drivers/i2c/chips/twl4030-usb.c
> +++ b/drivers/i2c/chips/twl4030-usb.c
> @@ -625,8 +625,8 @@ static int twl4030_set_suspend(struct otg_transceiver *x, int suspend)
> static int twl4030_set_peripheral(struct otg_transceiver *xceiv,
> struct usb_gadget *gadget)
> {
> - struct twl4030_usb *twl = xceiv_to_twl(xceiv);
> u32 l;
> + struct twl4030_usb *twl = xceiv_to_twl(xceiv);
To me you are just moving the place of this declaration.
>
> if (!xceiv)
> return -ENODEV;
> --
> 1.5.6.rc1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Eduardo Bezerra Valentin
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] i2c: twl4030: warning: mixed declarations and code
2008-06-11 13:53 ` Eduardo Valentin
@ 2008-06-11 13:55 ` Felipe Balbi
2008-06-11 14:02 ` Eduardo Valentin
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2008-06-11 13:55 UTC (permalink / raw)
To: ext Eduardo Valentin; +Cc: Felipe Balbi, linux-omap
On Wed, Jun 11, 2008 at 09:53:45AM -0400, ext Eduardo Valentin wrote:
> > - struct twl4030_usb *twl = xceiv_to_twl(xceiv);
> > u32 l;
> > + struct twl4030_usb *twl = xceiv_to_twl(xceiv);
>
> To me you are just moving the place of this declaration.
Yes, because ISO C99 forbids mixed declaraction and code. build
tlw4030-usb and you'll see the warning. ;-)
--
- Balbi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] i2c: twl4030: warning: mixed declarations and code
2008-06-11 13:55 ` Felipe Balbi
@ 2008-06-11 14:02 ` Eduardo Valentin
2008-06-23 13:00 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Eduardo Valentin @ 2008-06-11 14:02 UTC (permalink / raw)
To: felipe.balbi; +Cc: linux-omap
Hi Balbi,
On Wed, Jun 11, 2008 at 9:55 AM, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> On Wed, Jun 11, 2008 at 09:53:45AM -0400, ext Eduardo Valentin wrote:
>> > - struct twl4030_usb *twl = xceiv_to_twl(xceiv);
>> > u32 l;
>> > + struct twl4030_usb *twl = xceiv_to_twl(xceiv);
>>
>> To me you are just moving the place of this declaration.
>
> Yes, because ISO C99 forbids mixed declaraction and code. build
> tlw4030-usb and you'll see the warning. ;-)
Ok. I'd suggest changing the commit message to
i2c: twl4030: C99 warning: mixed declarations and code
But this is up to you :)
>
> --
> - Balbi
>
--
Eduardo Bezerra Valentin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] i2c: twl4030: warning: mixed declarations and code
2008-06-11 14:02 ` Eduardo Valentin
@ 2008-06-23 13:00 ` Tony Lindgren
0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2008-06-23 13:00 UTC (permalink / raw)
To: Eduardo Valentin; +Cc: felipe.balbi, linux-omap
* Eduardo Valentin <edubezval@gmail.com> [080611 17:04]:
> Hi Balbi,
>
> On Wed, Jun 11, 2008 at 9:55 AM, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> > On Wed, Jun 11, 2008 at 09:53:45AM -0400, ext Eduardo Valentin wrote:
> >> > - struct twl4030_usb *twl = xceiv_to_twl(xceiv);
> >> > u32 l;
> >> > + struct twl4030_usb *twl = xceiv_to_twl(xceiv);
> >>
> >> To me you are just moving the place of this declaration.
> >
> > Yes, because ISO C99 forbids mixed declaraction and code. build
> > tlw4030-usb and you'll see the warning. ;-)
>
> Ok. I'd suggest changing the commit message to
> i2c: twl4030: C99 warning: mixed declarations and code
>
> But this is up to you :)
Pushing today, that driver is not in mainline yet so the comments are
just fine.
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-06-23 12:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 11:55 [PATCH] i2c: twl4030: warning: mixed declarations and code Felipe Balbi
2008-06-11 13:53 ` Eduardo Valentin
2008-06-11 13:55 ` Felipe Balbi
2008-06-11 14:02 ` Eduardo Valentin
2008-06-23 13:00 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox