]> 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)
commit00d19edf69a2968b6943b6e6be83e2b3e7955dc0
treef087949d2d91a985f84d8283d5303b18c8b3dd05
parent8600a1e0966f59bfedd91acf56a9056c5dc4f14b
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