]> git.dujemihanovic.xyz Git - u-boot.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)
commit21f639446d6bccb6cc550140d36bd3ebd74fcee8
treece0d9c8f4f27a05d86ab42bb727221b6fe4046df
parent723806cc5bea9f8b37323dfd7568603f99af6a06
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