1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 01:32:47 +02:00

env: restore old env_get_char() behaviour

With multiple environments, the 'get_char' callback for env
drivers does not really make sense any more because it is
only supported by two drivers (eeprom and nvram).

To restore single character loading for these drivers,
override 'env_get_char_spec'.

Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Goldschmidt Simon
2018-02-09 20:23:17 +00:00
committed by Tom Rini
parent e1caa5841e
commit b2cdef4861
4 changed files with 15 additions and 39 deletions

View File

@@ -217,17 +217,6 @@ struct env_driver {
const char *name;
enum env_location location;
/**
* get_char() - Read a character from the environment
*
* This method is optional. If not provided, a default implementation
* will read from gd->env_addr.
*
* @index: Index of character to read (0=first)
* @return character read, or -ve on error
*/
int (*get_char)(int index);
/**
* load() - Load the environment from storage
*