]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62b9a00754086ec8013ce4db1e9d705a2a36de92
treef087949d2d91a985f84d8283d5303b18c8b3dd05
parentfcd1d29d763a149797e4a0c5fcc3267956ede9bd
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