]> git.baikalelectronics.ru Git - uboot.git/commit
api: Use hashtable function for API_env_enum
authorEmmanuel Vadot <manu@bidouilliste.com>
Mon, 26 Dec 2016 17:57:56 +0000 (18:57 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2017 14:15:24 +0000 (09:15 -0500)
commit8b4d1547f4c45f76047983b296607f1b6388b468
tree9ce8f69f433d1a41ab71d0ea858f93cacc3e1edb
parent8075b5589d8a0147eb4d7f858f7f3dc7d1c60c90
api: Use hashtable function for API_env_enum

The current code can loop undefinitly as it doesn't parse
correctly the env data.
Since the env is an hashtable, use the hashtable function for
the API_ENV_ENUM api call.

Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
api/api.c