
26 Apr
2011
26 Apr
'11
9:24 a.m.
On Tue, Apr 26, 2011 at 01:42, Shaohui Xie wrote:
+struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
- unsigned int max_hz, unsigned int mode)
+{
- fsl = malloc(sizeof(struct fsl_spi_slave));
personally, i like to use sizeof(*fsl). up to you.
- int numBlks
i believe camel case is banned in u-boot, so use "num_blks"
default:
printf("Unsupported flags: %ld\n", flags);
return 1;
no one else bothers checking flags, so you dont really need to either. but if you keep this, the printf should have a prefix (such as __func__), and the flags should be shown with %#lx.
otherwise, the actual arch-specific pieces dont jump out at me ... not that i know anything about programming ppc ... -mike