]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
env: factor out the env_get_char_spec() function
authorIgor Grinberg <grinberg@compulab.co.il>
Mon, 26 Dec 2011 03:33:10 +0000 (03:33 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 5 Jan 2012 15:34:10 +0000 (16:34 +0100)
commitbf95df44ff69e3e365603e3e30664ec41bfe0c65
treed6727b154fb2e17279acb141cd2975f60b243f10
parent33e1e01820f9a1e19ab18c8791f3b2dc09165e2b
env: factor out the env_get_char_spec() function

env_get_char_spec() function is duplicated across multiple environment
files.
Remove the duplication by providing a default implementation.
Add "weak" declaration, so the default implementation can be overridden.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
common/env_common.c
common/env_flash.c
common/env_mgdisk.c
common/env_mmc.c
common/env_nand.c
common/env_nowhere.c
common/env_nvram.c
common/env_onenand.c
common/env_sf.c