i2c: slave-eeprom: Make it possible to pre-load eeprom data
authorBjörn Ardö <bjorn.ardo@axis.com>
Fri, 24 Apr 2020 11:30:36 +0000 (13:30 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 26 Apr 2020 07:39:55 +0000 (09:39 +0200)
commite804f0a78e9e43f0105e1bc3e264894b3898e970
treef087949d2d91a985f84d8283d5303b18c8b3dd05
parente42688ed5cf5936fb55c78cc365dbe0944af7c63
i2c: slave-eeprom: Make it possible to pre-load eeprom data

If the slave eeprom has a "firmware-name" in devicetree, then pre-load
the data in the eeprom with this file. Otherwise we init the eeprom with
0xFF.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Björn Ardö <bjorn.ardo@axis.com>
[wsa: some cosmetic changes]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-slave-eeprom.c