]> git.baikalelectronics.ru Git - uboot.git/commit
arm: smh: Use numeric modes for smh_open
authorSean Anderson <sean.anderson@seco.com>
Tue, 22 Mar 2022 20:59:15 +0000 (16:59 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 19:03:13 +0000 (15:03 -0400)
commit6484d091334b47e3539241b874565e06e986cea9
tree40464d4b5457de29ef9de2d9e32185a34b9a9cfe
parent03ed6127301626829c9bd54a37ba6984b8acb90b
arm: smh: Use numeric modes for smh_open

There's no point in using string constants for smh_open if we are just
going to have to parse them. Instead, use numeric modes. The user needs
to be a bit careful with these, since they are much closer semantically
to string modes used by fopen(3) than the numeric modes used with
open(2).

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
arch/arm/lib/semihosting.c
include/semihosting.h