[U-Boot] [RFC] mmc: Remove ops from struct mmc and put in mmc_ops

Rommel G Custodio sessyargc+u-boot at gmail.com
Thu Feb 27 05:04:55 CET 2014


Dear Pantelis Antoniou

Pantelis Antoniou <panto <at> antoniou-consulting.com> writes:

> 
> Remove the in-structure ops and put them in mmc_ops with
> a constant pointer to it.
> 
> This makes the mmc structure smaller as well as conserving
> code space (in theory).

First build is latest master. Second build was with your patch. Compare size 
output.


[local (powerpc-linux-gnuspe)]$ powerpc-linux-gnuspe-size obj-
P5040DS_SPIFLASH_master/u-boot
   text    data     bss     dec     hex filename
 463352   39236  314064  816652   c760c obj-P5040DS_SPIFLASH_master/u-boot


[local (powerpc-linux-gnuspe)]$ powerpc-linux-gnuspe-size obj-
P5040DS_SPIFLASH/u-boot
   text    data     bss     dec     hex filename
 463364   39256  314064  816684   c762c obj-P5040DS_SPIFLASH/u-boot

> 
> All in-tree drivers are converted as well; this is done in a
> single patch in order to not break git bisect.
> 

<snipped>



More information about the U-Boot mailing list