cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount()
authorTien Fong Chee <tien.fong.chee@intel.com>
Fri, 6 Jul 2018 08:26:01 +0000 (16:26 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 00:22:32 +0000 (20:22 -0400)
commit14dfc6482a9057472ea202d2df4133a45bc3c1bc
tree34b56c6fccaed666df1bf0fa5a245da6c40078a2
parent10c2044062d045e27cbcda739501b96f670fb7f1
cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount()

cmd_ubifs_mount() function would be called directly instead of
involving whole command machinery for mounting ubifs in
generic firmware loader, so some checking codes need to be factored out
into cmd_ubifs_mount() without breaking original functionality design.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
cmd/ubifs.c
include/ubi_uboot.h