diff options
author | Goldschmidt Simon <sgoldschmidt@de.pepperl-fuchs.com> | 2018-02-09 20:23:17 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-02-16 11:12:42 -0500 |
commit | b2cdef4861befb65e784c01ed71a48bfb811ab38 (patch) | |
tree | bd8f5b467d2f09670e7167a2a66ceb95d8407347 /include/environment.h | |
parent | e1caa5841e8a9bc0ee658bdacae0519fa28e1e6a (diff) |
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>
Diffstat (limited to 'include/environment.h')
-rw-r--r-- | include/environment.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/environment.h b/include/environment.h index d7037ccd93..7986a24277 100644 --- a/include/environment.h +++ b/include/environment.h @@ -218,17 +218,6 @@ struct env_driver { 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 * * This method is optional. If not provided, no environment will be |