From: Wolfgang Denk Date: Wed, 04 Feb 2009 22:30:32 +0100 Subject: [U-Boot] [PATCH 1/9] i.MX31: fix SPI driver for shorter than 32 bit transfers In-Reply-To: References: Message-ID: <20090204213032.A9BE78322908@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Guennadi Liakhovetski, In message you wrote: > Fix 8 and 16-bit transfers in mxc_spi driver and a wrong pointer in the > free routine. > > Signed-off-by: Guennadi Liakhovetski > --- ... > for (i = 0, in_l = (u32 *)din, out_l = (u32 *)dout; > i < n_blks; > - i++, in_l++, out_l++, bitlen -= 32) > - *in_l = spi_xchg_single(slave, *out_l, bitlen); > + i++, in_l++, out_l++) > + *in_l = spi_xchg_single(slave, *out_l, flags); Please use TABs for indentation, and add curly braces because of the multi-line for construct. 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 "There are three principal ways to lose money: wine, women, and engi- neers. While the first two are more pleasant, the third is by far the more certain." - Baron Rothschild, ca. 1800