public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH ARM 1/3] s3c24x0 code style changes
Date: Tue, 15 Dec 2009 13:15:17 +0100	[thread overview]
Message-ID: <20091215121517.3750DC88AF@gemini.denx.de> (raw)
In-Reply-To: <4B2548EB.4000102@fearnside-systems.co.uk>

Dear "kevin.morfitt at fearnside-systems.co.uk",

In message <4B2548EB.4000102@fearnside-systems.co.uk> you wrote:
> Cleans up the s3c24x0 header files by changing the upper case members
> of the s3c24x0 register structures to lower case and changing all code
> that uses these register structures.
> 
> Signed-off-by: Kevin Morfitt <kevin.morfitt@fearnside-systems.co.uk>

Thanks for doing such cleanup.

> The patches are based on the u-boot-samsung repository.

Please adhere to posting guidelines. Patches posted ere MUST be based
either on the "master" or on the "next" trees.

Please considered these patches NAKed because of this.

...
> --- a/cpu/arm920t/s3c24x0/usb_ohci.c
> +++ b/cpu/arm920t/s3c24x0/usb_ohci.c
> @@ -212,8 +212,8 @@ void ep_print_int_eds(struct ohci *ohci, char *str)
>  		printf(__FILE__ ": %s branch int %2d(%2x):", str, i, i);
>  		while (*ed_p != 0 && j--) {
>  			struct ed *ed = (struct ed *) m32_swap(ed_p);
> -			printf(" ed: %4x;", ed->hwINFO);
> -			ed_p = &ed->hwNextED;
> +			printf(" ed: %4x;", ed->hwinfo);
> +			ed_p = &ed->hwnexted;

Her readability suffers a lot. What is "hwnexted" ??It might make
sense to add some underscores here to improve readability - or chose
better variable names.

> -		dbg("%08x", edp->hwINFO);
> -		dbg("%08x", edp->hwTailP);
> -		dbg("%08x", edp->hwHeadP);
> -		dbg("%08x", edp->hwNextED);
> +		dbg("%08x", edp->hwinfo);
> +		dbg("%08x", edp->hwtailp);
> +		dbg("%08x", edp->hwheadp);
> +		dbg("%08x", edp->hwnexted);

Ditto.  Please check globally.



Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"A fractal is by definition a set for which the Hausdorff Besicovitch
dimension strictly exceeds the topological dimension."
- Mandelbrot, _The Fractal Geometry of Nature_

  parent reply	other threads:[~2009-12-15 12:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-13 20:04 [U-Boot] [PATCH ARM 1/3] s3c24x0 code style changes kevin.morfitt at fearnside-systems.co.uk
2009-12-15  4:37 ` Minkyu Kang
2009-12-15 12:15 ` Wolfgang Denk [this message]
2009-12-15 20:14   ` Scott Wood
2009-12-15 20:50     ` Wolfgang Denk
2009-12-15 21:09       ` Scott Wood
2009-12-15 21:51         ` Wolfgang Denk
2010-01-04 16:46           ` Scott Wood

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=20091215121517.3750DC88AF@gemini.denx.de \
    --to=wd@denx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox