From b2cdef4861befb65e784c01ed71a48bfb811ab38 Mon Sep 17 00:00:00 2001 From: Goldschmidt Simon Date: Fri, 9 Feb 2018 20:23:17 +0000 Subject: 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 Acked-by: Maxime Ripard --- include/environment.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'include') diff --git a/include/environment.h b/include/environment.h index d7037ccd93..7986a24277 100644 --- a/include/environment.h +++ b/include/environment.h @@ -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 * -- cgit