cti_flash.c: use __weak when requested for flash_(read|write){8,16,32,64}
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 8 Oct 2014 20:57:23 +0000 (22:57 +0200)
committerTom Rini <trini@ti.com>
Sat, 25 Oct 2014 10:58:51 +0000 (06:58 -0400)
commit00dcb07c545a6c5650fa5d2350b4f3f14e92274c
tree0e5a22f78c5a562c414f2fe20b986818e54a1910
parentdd2a6cd0f7929142066a0221cebba05cbd851199
cti_flash.c: use __weak when requested for flash_(read|write){8,16,32,64}

For various reasons (design, errata) boards may need to implement their
own versions of these accessors.  So in the case of
CONFIG_CFI_FLASH_USE_WEAK_ACCESSOR mark the functions as weak.  In the
normal case mark them as static to allow for better optimization.

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
[trini: Reword commit message]
Signed-off-by: Tom Rini <trini@ti.com>
drivers/mtd/cfi_flash.c