public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: tony@atomide.com
To: David Brownell <david-b@pacbell.net>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [patch 2.6.20-rc5-omap] musb_hdrc, otg_state_string tweak
Date: Thu, 18 Jan 2007 14:21:27 -0800	[thread overview]
Message-ID: <20070118222126.GC7362@atomide.com> (raw)
In-Reply-To: <20070118120558.9A6AC20DDBD@adsl-69-226-248-13.dsl.pltn13.pacbell.net>

* David Brownell <david-b@pacbell.net> [070118 04:06]:
> This provides a trivial definition of otg_state_string() for use
> in various WARNING() messages when debugging is not enabled.
> 
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
> 
> Index: o26/drivers/usb/musb/plat_uds.c
> ===================================================================
> --- o26.orig/drivers/usb/musb/plat_uds.c	2007-01-18 03:06:34.000000000 -0800
> +++ o26/drivers/usb/musb/plat_uds.c	2007-01-18 03:11:35.000000000 -0800
> @@ -122,6 +122,15 @@ module_param(debug, uint, 0);
>  MODULE_PARM_DESC(debug, "initial debug message level");
>  
>  #define MUSB_VERSION_SUFFIX	"/dbg"
> +#else
> +
> +const char *otg_state_string(struct musb *musb)
> +{
> +	static char buf[8];
> +
> +	snprintf(buf, sizeof buf, "otg-%d", musb->xceiv.state);
> +	return buf;
> +}
>  #endif
>  
>  #define DRIVER_AUTHOR "Mentor Graphics, Texas Instruments, Nokia"

Pushed.

Tony

      reply	other threads:[~2007-01-18 22:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-18 12:05 [patch 2.6.20-rc5-omap] musb_hdrc, otg_state_string tweak David Brownell
2007-01-18 22:21 ` tony [this message]

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=20070118222126.GC7362@atomide.com \
    --to=tony@atomide.com \
    --cc=david-b@pacbell.net \
    --cc=linux-omap-open-source@linux.omap.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox