diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-15 20:50:28 -0400 |
commit | ac358beb85362fb2fac47aaec40a7e1bca49656c (patch) | |
tree | 1d2b77ef10563b86d63255e6a1b3870e48e78199 /env/eeprom.c | |
parent | 7938822a6b75b69fff9793b6b1769dddf1249525 (diff) | |
download | u-boot-ac358beb85362fb2fac47aaec40a7e1bca49656c.tar.gz |
env: Drop the env_name_spec global
Add a name to the driver and use that instead of the global variable
declared by each driver.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'env/eeprom.c')
-rw-r--r-- | env/eeprom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/env/eeprom.c b/env/eeprom.c index 3cc412620a..2c795b9236 100644 --- a/env/eeprom.c +++ b/env/eeprom.c @@ -23,8 +23,6 @@ DECLARE_GLOBAL_DATA_PTR; env_t *env_ptr; -char *env_name_spec = "EEPROM"; - static int eeprom_bus_read(unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt) { @@ -233,6 +231,7 @@ 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), |