[U-Boot-Users] [PATCH] Add MIMC200 board - now uses board_eth_init()

Scott Wood scottwood at freescale.com
Mon Jul 28 22:22:51 CEST 2008


On Mon, Jul 28, 2008 at 10:03:43PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> 
>  +
> > +static const struct sdram_config sdram_config = {
> > +    .data_bits    = SDRAM_DATA_16BIT,
> > +    .row_bits    = 13,
> > +    .col_bits    = 9,
> > +    .bank_bits    = 2,
> > +    .cas        = 3,
> > +    .twr        = 2,
> > +    .trc        = 6,
> > +    .trp        = 2,
> > +    .trcd        = 2,
> > +    .tras        = 6,
> > +    .txsr        = 6,
>             ^^^^^^^^
> please indent with tab for all files

That's not indenting, that's alignment -- or would be, if it were
actually aligned. :-P

Aligning with TABs (or at all, in initializer lists) is not a good thing,
IMO -- it screws things up when viewed with any other tab size (and why
else have tabs in the first place?).

> > +int spi_cs_is_valid(unsigned int bus, unsigned int cs)
> > +{
> > +    return bus == 0 && cs == 0;
> please replace by 
> 	return (bus == 0) && (cs == 0);

Why?  This isn't typical coding style as far as I've seen.

-Scott




More information about the U-Boot mailing list