]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - env/eeprom.c
env: restore old env_get_char() behaviour
[people/ms/u-boot.git] / env / eeprom.c
index 55d19d9d99cc19954c746a1bbd393dbca0db44bc..63842d6ff3ee92adc737b15b53924cd327ff9511 100644 (file)
@@ -61,7 +61,10 @@ static int eeprom_bus_write(unsigned dev_addr, unsigned offset,
        return rcode;
 }
 
-static int env_eeprom_get_char(int index)
+/** Call this function from overridden env_get_char_spec() if you need
+ * this functionality.
+ */
+int env_eeprom_get_char(int index)
 {
        uchar c;
        unsigned int off = CONFIG_ENV_OFFSET;
@@ -228,7 +231,6 @@ static int env_eeprom_save(void)
 U_BOOT_ENV_LOCATION(eeprom) = {
        .location       = ENVL_EEPROM,
        ENV_NAME("EEPROM")
-       .get_char       = env_eeprom_get_char,
        .load           = env_eeprom_load,
        .save           = env_save_ptr(env_eeprom_save),
 };