Upstream kernel driver allows specifying EEPROM name via "zii,eeprom-name" property. Add code to support that in Barebox as well. Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- drivers/nvmem/rave-sp-eeprom.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/nvmem/rave-sp-eeprom.c b/drivers/nvmem/rave-sp-eeprom.c index ff91f39f7..6c6ed17f1 100644 --- a/drivers/nvmem/rave-sp-eeprom.c +++ b/drivers/nvmem/rave-sp-eeprom.c @@ -337,6 +337,11 @@ static int rave_sp_eeprom_probe(struct device_d *dev) eeprom->header_size = RAVE_SP_EEPROM_HEADER_SMALL; config.name = dev_name(dev); + /* + * If a name is specified via DT, override the above with it. + */ + of_property_read_string(dev->device_node, "zii,eeprom-name", + &config.name); config.dev = dev; config.word_size = 1; config.stride = 1; -- 2.17.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox