]> git.baikalelectronics.ru Git - uboot.git/commit
env: Adjust the get_char() method to return an int
authorSimon Glass <sjg@chromium.org>
Thu, 3 Aug 2017 18:22:16 +0000 (12:22 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 16 Aug 2017 12:31:24 +0000 (08:31 -0400)
commitf49d058b61bb18ec42215476b7e0a404882aff28
treece0d9c8f4f27a05d86ab42bb727221b6fe4046df
parent80afee4008d4da7beb51ecb1c526001e91f99427
env: Adjust the get_char() method to return an int

In principle this can fail, e.g. if the index is out of range. Adjust the
driver signature to allow returning an error code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
env/dataflash.c
env/eeprom.c
env/nvram.c
include/environment.h