[U-Boot] declaring and initializing variables

2013-09-30 Thread York Sun
Kim, et al., I know I have asked this before. Pardon me as I don't consider myself a savy programmer. I am cleaning up the DDR driver for mpc83xx, mpc85xx and mpc86xx. The question is the accetable formats of declaring and initializing variable at the same time. The variables are the ccsr registe

Re: [U-Boot] declaring and initializing variables

2013-09-30 Thread Timur Tabi
On Mon, Sep 30, 2013 at 7:04 PM, York Sun wrote: > > struct ccsr_ddr __iomem *ddr = (void *) CONFIG_FOO_ADDR; > struct ccsr_ddr __iomem *ddr = > (struct ccsr_ddr __iomem *) CONFIG_FOO_ADDR; > > You have told me the second format is preferred. I have been using this > format since. But in p

Re: [U-Boot] declaring and initializing variables

2013-10-07 Thread Kim Phillips
On Mon, 30 Sep 2013 17:04:33 -0700 York Sun wrote: > Kim, et al., > > I know I have asked this before. Pardon me as I don't consider myself a > savy programmer. > > I am cleaning up the DDR driver for mpc83xx, mpc85xx and mpc86xx. The > question is the accetable formats of declaring and initial

Re: [U-Boot] declaring and initializing variables

2013-10-14 Thread York Sun
On 10/07/2013 03:03 PM, Kim Phillips wrote: > On Mon, 30 Sep 2013 17:04:33 -0700 > York Sun wrote: > >> Kim, et al., >> >> I know I have asked this before. Pardon me as I don't consider myself a >> savy programmer. >> >> I am cleaning up the DDR driver for mpc83xx, mpc85xx and mpc86xx. The >> que

Re: [U-Boot] declaring and initializing variables

2013-10-15 Thread Kim Phillips
On Mon, 14 Oct 2013 12:05:52 -0700 York Sun wrote: > On 10/07/2013 03:03 PM, Kim Phillips wrote: > > On Mon, 30 Sep 2013 17:04:33 -0700 > > York Sun wrote: > > > >> Kim, et al., > >> > >> I know I have asked this before. Pardon me as I don't consider myself a > >> savy programmer. > >> > >> I a