]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: bcb: Extract '__bcb_load' from 'do_bcb_load' for internal needs
authorEugeniu Rosca <erosca@de.adit-jv.com>
Fri, 23 Oct 2020 08:52:19 +0000 (11:52 +0300)
committerMarek Vasut <marex@denx.de>
Sun, 31 Jan 2021 13:08:56 +0000 (14:08 +0100)
commitd4f96a6a8f9b39d82fa6bd013a5ed8ea8d1fe2b6
tree30884ef02427abb15d03d68d22b4cb804500f9dd
parent1f4427ec306f7d31fb1f236ecdbf0b9bebd944dd
cmd: bcb: Extract '__bcb_load' from 'do_bcb_load' for internal needs

Enriching the functionality of U-Boot 'bcb' may assume using the
existing sub-commands as building blocks for the next ones.

A clean way to achive the above is to expose a number of static
routines, each mapped to an existing user command (e.g. load/set/store),
with a user/caller-friendly prototype (i.e. do not force the caller
to wrap an integer into a string).

This first patch makes '__bcb_load' available for internal needs.

No functional change, except for a tiny update in error handling.

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Roman Kovalivskyi <roman.kovalivskyi@globallogic.com>
cmd/bcb.c